X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FSchedule.h;h=553c2a20ddaab466e68f994bac9ac1bf6ed3988c;hb=2322bc9a89a9d8a6132a6818ccff6f665d7ed7f1;hp=162685299724ed0155d7c514736b12a779ec9772;hpb=c5cd2343c5a86c8cb5349823a9699b30a269f3e8;p=ghc-hetmet.git diff --git a/ghc/rts/Schedule.h b/ghc/rts/Schedule.h index 1626852..553c2a2 100644 --- a/ghc/rts/Schedule.h +++ b/ghc/rts/Schedule.h @@ -86,7 +86,6 @@ void GetRoots(evac_fn); */ void workerStart(Task *task); -// ToDo: check whether all fcts below are used in the SMP version, too #if defined(GRAN) void awaken_blocked_queue(StgBlockingQueueElement *q, StgClosure *node); void unlink_from_bq(StgTSO* tso, StgClosure* node); @@ -288,6 +287,12 @@ emptyThreadQueues(Capability *cap) ; } +STATIC_INLINE void +dirtyTSO (StgTSO *tso) +{ + tso->flags |= TSO_DIRTY; +} + #ifdef DEBUG void sched_belch(char *s, ...) GNU_ATTRIBUTE(format (printf, 1, 2));