Core/TaskScheduler: Remove tsan workaround
This commit is contained in:
@@ -12,11 +12,6 @@
|
|||||||
#include <random>
|
#include <random>
|
||||||
#include <semaphore>
|
#include <semaphore>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
#ifdef NAZARA_WITH_TSAN
|
|
||||||
#include <sanitizer/tsan_interface.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <Nazara/Core/Debug.hpp>
|
#include <Nazara/Core/Debug.hpp>
|
||||||
|
|
||||||
namespace Nz
|
namespace Nz
|
||||||
@@ -117,11 +112,6 @@ namespace Nz
|
|||||||
|
|
||||||
if (task)
|
if (task)
|
||||||
{
|
{
|
||||||
#ifdef NAZARA_WITH_TSAN
|
|
||||||
// Workaround for TSan false-positive
|
|
||||||
__tsan_acquire(task);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
task();
|
task();
|
||||||
|
|
||||||
NotifyTaskCompletion();
|
NotifyTaskCompletion();
|
||||||
|
|||||||
Reference in New Issue
Block a user