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 cd0c388..75607b9 100644
--- a/src/lanes_private.h
+++ b/src/lanes_private.h
@@ -4,10 +4,10 @@
4#include "cancel.h" 4#include "cancel.h"
5#include "universe.h" 5#include "universe.h"
6 6
7enum ThreadStatus 7enum class ThreadStatus
8{ 8{
9 NORMAL, // normal master side state 9 Normal, // normal master side state
10 KILLED // issued an OS kill 10 Killed // issued an OS kill
11}; 11};
12 12
13// NOTE: values to be changed by either thread, during execution, without 13// NOTE: values to be changed by either thread, during execution, without
@@ -37,7 +37,7 @@ struct Lane
37 // 37 //
38 // When status is WAITING, points on the linda's signal the thread waits on, else nullptr 38 // When status is WAITING, points on the linda's signal the thread waits on, else nullptr
39 39
40 volatile enum e_cancel_request cancel_request; 40 volatile CancelRequest cancel_request;
41 // 41 //
42 // M: sets to false, flags true for cancel request 42 // M: sets to false, flags true for cancel request
43 // S: reads to see if cancel is requested 43 // S: reads to see if cancel is requested
@@ -54,9 +54,9 @@ struct Lane
54 // lane status changes to DONE/ERROR_ST/CANCELLED. 54 // lane status changes to DONE/ERROR_ST/CANCELLED.
55#endif // THREADWAIT_METHOD == THREADWAIT_CONDVAR 55#endif // THREADWAIT_METHOD == THREADWAIT_CONDVAR
56 56
57 volatile enum ThreadStatus mstatus; 57 volatile ThreadStatus mstatus;
58 // 58 //
59 // M: sets to NORMAL, if issued a kill changes to KILLED 59 // M: sets to Normal, if issued a kill changes to Killed
60 // S: not used 60 // S: not used
61 61
62 Lane* volatile selfdestruct_next; 62 Lane* volatile selfdestruct_next;