X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FSchedule.h;h=ebbe7d15ff284fe1c673bf0d91aab3611f4981e3;hb=324e96d2ebfcb113cd97c43ef043d591ef87de71;hp=fccac3ce0cc49d7925016ebf102e72b10b13b682;hpb=aefc6956f4828708e1343cf4858296fc3141a176;p=ghc-hetmet.git diff --git a/ghc/rts/Schedule.h b/ghc/rts/Schedule.h index fccac3c..ebbe7d1 100644 --- a/ghc/rts/Schedule.h +++ b/ghc/rts/Schedule.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Schedule.h,v 1.39 2003/09/21 22:20:56 wolfgang Exp $ + * $Id: Schedule.h,v 1.40 2003/10/01 10:49:09 wolfgang Exp $ * * (c) The GHC Team 1998-1999 * @@ -190,9 +190,10 @@ typedef struct StgMainThread_ { SchedulerStatus stat; StgClosure ** ret; #if defined(RTS_SUPPORTS_THREADS) - Condition wakeup; #if defined(THREADED_RTS) Condition bound_thread_cond; +#else + Condition wakeup; #endif #endif struct StgMainThread_ *link; @@ -297,12 +298,12 @@ void labelThread(StgPtr tso, char *label); #if defined(RTS_SUPPORTS_THREADS) /* If no task is waiting for a capability, + * and if there is work to be done + * or if we need to wait for IO or delay requests, * spawn a new worker thread. - * - * (Used by the RtsAPI) */ void -startSchedulerTask(void); +startSchedulerTaskIfNecessary(void); #endif #endif /* __SCHEDULE_H__ */