X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FSchedule.h;h=6751144be801afd9fe903be22f77169956346203;hb=cfdf2515dd5b491f8229d44b98fa33adeeac7e60;hp=2dd4acd0d99be8a63f8fa0736eca968272d581f9;hpb=9a9803e8dc80ba41bd3e2d31228e64fa6b61060e;p=ghc-hetmet.git diff --git a/rts/Schedule.h b/rts/Schedule.h index 2dd4acd..6751144 100644 --- a/rts/Schedule.h +++ b/rts/Schedule.h @@ -126,7 +126,10 @@ void performPendingThrowTos (StgTSO *); * NOTE: tso->link should be END_TSO_QUEUE before calling this macro. * ASSUMES: cap->running_task is the current task. */ -INLINE_HEADER void +EXTERN_INLINE void +appendToRunQueue (Capability *cap, StgTSO *tso); + +EXTERN_INLINE void appendToRunQueue (Capability *cap, StgTSO *tso) { ASSERT(tso->_link == END_TSO_QUEUE); @@ -136,7 +139,7 @@ appendToRunQueue (Capability *cap, StgTSO *tso) setTSOLink(cap, cap->run_queue_tl, tso); } cap->run_queue_tl = tso; - traceSchedEvent (cap, EVENT_THREAD_RUNNABLE, tso, 0); + traceEventThreadRunnable (cap, tso); } /* Push a thread on the beginning of the run queue.