diff options
author | Andreas Klebinger <klebinger.andreas@gmx.at> | 2020-04-20 16:40:42 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-07-15 16:41:02 -0400 |
commit | cc5d7bb1dcf5603ac47320e83e4fc9ef53e409e9 (patch) | |
tree | 11daeccc9c18522b727e890179649ccf5c8ebd7f /rts/Schedule.h | |
parent | f47c7208c31bdd695ba46e6bdf4a349ae46c79bc (diff) | |
download | haskell-cc5d7bb1dcf5603ac47320e83e4fc9ef53e409e9.tar.gz |
winio: Queue IO processing threads at the front of the queue.
This will unblock the IO thread sooner hopefully leading to higher
throughput in some situations.
Diffstat (limited to 'rts/Schedule.h')
-rw-r--r-- | rts/Schedule.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rts/Schedule.h b/rts/Schedule.h index 89ab6e0b4c..a550a6763a 100644 --- a/rts/Schedule.h +++ b/rts/Schedule.h @@ -27,6 +27,10 @@ void markScheduler (evac_fn evac, void *user); // Place a new thread on the run queue of the current Capability void scheduleThread (Capability *cap, StgTSO *tso); +// Place a new thread on the run queue of the current Capability +// at the front of the queue. +void scheduleThreadNow (Capability *cap, StgTSO *tso); + // Place a new thread on the run queue of a specified Capability // (cap is the currently owned Capability, cpu is the number of // the desired Capability). |