diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2011-03-02 20:40:26 +0100 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2011-03-02 20:40:26 +0100 |
commit | 5499ec1a61be9797c57834618a49731952b1d212 (patch) | |
tree | 666b2a2f4d39d82571a42281b902a0d8969f7829 | |
parent | 46738a367025e4a4765569174ba348e816fa492d (diff) | |
download | lanes-5499ec1a61be9797c57834618a49731952b1d212.tar.gz lanes-5499ec1a61be9797c57834618a49731952b1d212.tar.bz2 lanes-5499ec1a61be9797c57834618a49731952b1d212.zip |
hopefully fix pthread compilation (and should work better under WIN32 too...)v2.1.0
-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 | } |