aboutsummaryrefslogtreecommitdiff
path: root/src/lanes_private.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lanes_private.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lanes_private.h b/src/lanes_private.h
index 083ac4e..1d476cf 100644
--- a/src/lanes_private.h
+++ b/src/lanes_private.h
@@ -33,12 +33,12 @@ class Lane
33 using enum Status; 33 using enum Status;
34 34
35 // the thread 35 // the thread
36 std::jthread m_thread; 36 std::jthread thread;
37 // a latch to wait for the lua_State to be ready 37 // a latch to wait for the lua_State to be ready
38 std::latch m_ready{ 1 }; 38 std::latch ready{ 1 };
39 // to wait for stop requests through m_thread's stop_source 39 // to wait for stop requests through m_thread's stop_source
40 std::mutex m_done_mutex; 40 std::mutex done_mutex;
41 std::condition_variable m_done_signal; // use condition_variable_any if waiting for a stop_token 41 std::condition_variable done_signal; // use condition_variable_any if waiting for a stop_token
42 // 42 //
43 // M: sub-thread OS thread 43 // M: sub-thread OS thread
44 // S: not used 44 // S: not used
@@ -51,12 +51,12 @@ class Lane
51 // M: prepares the state, and reads results 51 // M: prepares the state, and reads results
52 // S: while S is running, M must keep out of modifying the state 52 // S: while S is running, M must keep out of modifying the state
53 53
54 Status volatile m_status{ Pending }; 54 Status volatile status{ Pending };
55 // 55 //
56 // M: sets to Pending (before launching) 56 // M: sets to Pending (before launching)
57 // S: updates -> Running/Waiting -> Done/Error/Cancelled 57 // S: updates -> Running/Waiting -> Done/Error/Cancelled
58 58
59 std::condition_variable* volatile m_waiting_on{ nullptr }; 59 std::condition_variable* volatile waiting_on{ nullptr };
60 // 60 //
61 // When status is Waiting, points on the linda's signal the thread waits on, else nullptr 61 // When status is Waiting, points on the linda's signal the thread waits on, else nullptr
62 62