From 5499ec1a61be9797c57834618a49731952b1d212 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Wed, 2 Mar 2011 20:40:26 +0100 Subject: hopefully fix pthread compilation (and should work better under WIN32 too...) --- src/lanes.c | 4 ++-- 1 file 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 { // M: sets to PENDING (before launching) // S: updates -> RUNNING/WAITING -> DONE/ERROR_ST/CANCELLED - volatile SIGNAL_T waiting_on; + SIGNAL_T * volatile waiting_on; // // When status is WAITING, points on the linda's signal the thread waits on, else NULL @@ -898,7 +898,7 @@ static void selfdestruct_atexit( void ) { // signal the linda the wake up the thread so that it can react to the cancel query // let us hope we never land here with a pointer on a linda that has been destroyed... - SIGNAL_T waiting_on = s->waiting_on; + SIGNAL_T *waiting_on = s->waiting_on; s->waiting_on = NULL; SIGNAL_ALL( waiting_on); } -- cgit v1.2.3-55-g6feb