diff options
-rw-r--r-- | src/lanes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lanes.c b/src/lanes.c index c46130f..0c943aa 100644 --- a/src/lanes.c +++ b/src/lanes.c | |||
@@ -130,7 +130,7 @@ struct s_lane { | |||
130 | // M: sets to PENDING (before launching) | 130 | // M: sets to PENDING (before launching) |
131 | // S: updates -> RUNNING/WAITING -> DONE/ERROR_ST/CANCELLED | 131 | // S: updates -> RUNNING/WAITING -> DONE/ERROR_ST/CANCELLED |
132 | 132 | ||
133 | volatile SIGNAL_T waiting_on; | 133 | SIGNAL_T * volatile waiting_on; |
134 | // | 134 | // |
135 | // When status is WAITING, points on the linda's signal the thread waits on, else NULL | 135 | // When status is WAITING, points on the linda's signal the thread waits on, else NULL |
136 | 136 | ||
@@ -898,7 +898,7 @@ static void selfdestruct_atexit( void ) | |||
898 | { | 898 | { |
899 | // signal the linda the wake up the thread so that it can react to the cancel query | 899 | // signal the linda the wake up the thread so that it can react to the cancel query |
900 | // let us hope we never land here with a pointer on a linda that has been destroyed... | 900 | // let us hope we never land here with a pointer on a linda that has been destroyed... |
901 | SIGNAL_T waiting_on = s->waiting_on; | 901 | SIGNAL_T *waiting_on = s->waiting_on; |
902 | s->waiting_on = NULL; | 902 | s->waiting_on = NULL; |
903 | SIGNAL_ALL( waiting_on); | 903 | SIGNAL_ALL( waiting_on); |
904 | } | 904 | } |