X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FSchedule.h;h=1214fd87840a365ce9b695895c6feee3d9b506c9;hb=a5288c551349a0adab0d931a429b10a096d9444d;hp=378bd68c66219041440a8404805dd432b13d460d;hpb=a2a67cd520b9841114d69a87a423dabcb3b4368e;p=ghc-hetmet.git diff --git a/rts/Schedule.h b/rts/Schedule.h index 378bd68..1214fd8 100644 --- a/rts/Schedule.h +++ b/rts/Schedule.h @@ -12,7 +12,9 @@ #include "rts/OSThreads.h" #include "Capability.h" -#include "eventlog/EventLog.h" +#include "Trace.h" + +#pragma GCC visibility push(hidden) /* initScheduler(), exitScheduler() * Called from STG : no @@ -134,7 +136,7 @@ appendToRunQueue (Capability *cap, StgTSO *tso) setTSOLink(cap, cap->run_queue_tl, tso); } cap->run_queue_tl = tso; - postEvent (cap, EVENT_THREAD_RUNNABLE, tso->id, 0); + traceSchedEvent (cap, EVENT_THREAD_RUNNABLE, tso, 0); } /* Push a thread on the beginning of the run queue. @@ -239,5 +241,7 @@ emptyThreadQueues(Capability *cap) #endif /* !IN_STG_CODE */ +#pragma GCC visibility pop + #endif /* SCHEDULE_H */