diff options
Diffstat (limited to 'test/tsan/atomic_free3.cc')
-rw-r--r-- | test/tsan/atomic_free3.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tsan/atomic_free3.cc b/test/tsan/atomic_free3.cc index 753671bd1..f2875aeb6 100644 --- a/test/tsan/atomic_free3.cc +++ b/test/tsan/atomic_free3.cc @@ -13,7 +13,7 @@ int main() { pthread_t t; pthread_create(&t, 0, Thread, a); while (__atomic_load_n(a, __ATOMIC_RELAXED) == 0) - pthread_yield(); + sched_yield(); delete a; pthread_join(t, 0); } |