aboutsummaryrefslogtreecommitdiff
path: root/src/lanes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lanes.cpp')
-rw-r--r--src/lanes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lanes.cpp b/src/lanes.cpp
index 12cd7ef..f5d5130 100644
--- a/src/lanes.cpp
+++ b/src/lanes.cpp
@@ -502,7 +502,7 @@ static int universe_gc( lua_State* L)
502 while (U->selfdestruct_first != SELFDESTRUCT_END) 502 while (U->selfdestruct_first != SELFDESTRUCT_END)
503 { 503 {
504 // give threads time to act on their cancel 504 // give threads time to act on their cancel
505 YIELD(); 505 std::this_thread::yield();
506 // count the number of cancelled thread that didn't have the time to act yet 506 // count the number of cancelled thread that didn't have the time to act yet
507 int n{ 0 }; 507 int n{ 0 };
508 { 508 {
@@ -529,7 +529,7 @@ static int universe_gc( lua_State* L)
529 // They are no longer listed in the selfdestruct chain, but they still have to lua_close(). 529 // They are no longer listed in the selfdestruct chain, but they still have to lua_close().
530 while (U->selfdestructing_count.load(std::memory_order_acquire) > 0) 530 while (U->selfdestructing_count.load(std::memory_order_acquire) > 0)
531 { 531 {
532 YIELD(); 532 std::this_thread::yield();
533 } 533 }
534 } 534 }
535 535