aboutsummaryrefslogtreecommitdiff
path: root/src/lane.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lane.h')
-rw-r--r--src/lane.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lane.h b/src/lane.h
index eb70153..836b1b3 100644
--- a/src/lane.h
+++ b/src/lane.h
@@ -69,8 +69,12 @@ class Lane
69 69
70 // the thread 70 // the thread
71 std::jthread thread; 71 std::jthread thread;
72#ifndef __PROSPERO__
72 // a latch to wait for the lua_State to be ready 73 // a latch to wait for the lua_State to be ready
73 std::latch ready{ 1 }; 74 std::latch ready{ 1 };
75#else // __PROSPERO__
76 std::atomic_flag ready{};
77#endif // __PROSPERO__
74 // to wait for stop requests through thread's stop_source 78 // to wait for stop requests through thread's stop_source
75 std::mutex doneMutex; 79 std::mutex doneMutex;
76 std::condition_variable doneCondVar; // use condition_variable_any if waiting for a stop_token 80 std::condition_variable doneCondVar; // use condition_variable_any if waiting for a stop_token