implement clean/dirty TSOs
[ghc-hetmet.git] / ghc / rts / Schedule.h
index 1626852..4394ca8 100644 (file)
@@ -288,6 +288,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));