summaryrefslogtreecommitdiff
path: root/rts/Schedule.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/Schedule.c')
-rw-r--r--rts/Schedule.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/rts/Schedule.c b/rts/Schedule.c
index 8c120c093e..6b10326859 100644
--- a/rts/Schedule.c
+++ b/rts/Schedule.c
@@ -2577,6 +2577,14 @@ scheduleThread(Capability *cap, StgTSO *tso)
}
void
+scheduleThreadNow(Capability *cap, StgTSO *tso)
+{
+ // The thread goes at the *beginning* of the run-queue,
+ // in order to execute it as soon as possible.
+ pushOnRunQueue(cap,tso);
+}
+
+void
scheduleThreadOn(Capability *cap, StgWord cpu USED_IF_THREADS, StgTSO *tso)
{
tso->flags |= TSO_LOCKED; // we requested explicit affinity; don't