aboutsummaryrefslogtreecommitdiff
path: root/src/lanes_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lanes_private.h')
-rw-r--r--src/lanes_private.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lanes_private.h b/src/lanes_private.h
index 27635fa..cd0c388 100644
--- a/src/lanes_private.h
+++ b/src/lanes_private.h
@@ -13,7 +13,7 @@ enum ThreadStatus
13// NOTE: values to be changed by either thread, during execution, without 13// NOTE: values to be changed by either thread, during execution, without
14// locking, are marked "volatile" 14// locking, are marked "volatile"
15// 15//
16struct s_Lane 16struct Lane
17{ 17{
18 THREAD_T thread; 18 THREAD_T thread;
19 // 19 //
@@ -59,19 +59,18 @@ struct s_Lane
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 struct s_Lane* volatile selfdestruct_next; 62 Lane* volatile selfdestruct_next;
63 // 63 //
64 // M: sets to non-nullptr if facing lane handle '__gc' cycle but the lane 64 // M: sets to non-nullptr if facing lane handle '__gc' cycle but the lane
65 // is still running 65 // is still running
66 // S: cleans up after itself if non-nullptr at lane exit 66 // S: cleans up after itself if non-nullptr at lane exit
67 67
68#if HAVE_LANE_TRACKING() 68#if HAVE_LANE_TRACKING()
69 struct s_Lane* volatile tracking_next; 69 Lane* volatile tracking_next;
70#endif // HAVE_LANE_TRACKING() 70#endif // HAVE_LANE_TRACKING()
71 // 71 //
72 // For tracking only 72 // For tracking only
73}; 73};
74typedef struct s_Lane Lane;
75 74
76// To allow free-running threads (longer lifespan than the handle's) 75// To allow free-running threads (longer lifespan than the handle's)
77// 'Lane' are malloc/free'd and the handle only carries a pointer. 76// 'Lane' are malloc/free'd and the handle only carries a pointer.