Commit 820134a0 authored by Simon Marlow's avatar Simon Marlow

remove unused sched_shutting_down

parent 0b3811c0
......@@ -842,7 +842,7 @@ tryGrabCapability (Capability *cap, Task *task)
* allow the workers to stop.
* This function should be called when interrupted and
* shutting_down_scheduler = rtsTrue, thus any worker that wakes up
* sched_state = SCHED_SHUTTING_DOWN, thus any worker that wakes up
* will exit the scheduler and call taskStop(), and any bound thread
* that wakes up will return to its caller. Runnable threads are
* killed.
......@@ -97,13 +97,6 @@ volatile StgWord sched_state = SCHED_RUNNING;
StgTSO dummy_tso;
* Set to TRUE when entering a shutdown state (via shutdownHaskellAndExit()) --
* in an MT setting, needed to signal that a worker thread shouldn't hang around
* in the scheduler when it is out of work.
rtsBool shutting_down_scheduler = rtsFalse;
* This mutex protects most of the global scheduler data in
* the THREADED_RTS runtime.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment