Core/TaskScheduler: Remove tsan workaround
This commit is contained in:
parent
a4827a99a0
commit
bcd64a0ad0
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue