Commit 5d48ad27 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Put the task on the free list in workerTaskStop

parent 221e74f6
......@@ -251,6 +251,11 @@ workerTaskStop (Task *task)
taskTimeStamp(task);
task->stopped = rtsTrue;
tasksRunning--;
ACQUIRE_LOCK(&sched_mutex);
task->next = task_free_list;
task_free_list = task;
RELEASE_LOCK(&sched_mutex);
}
void
......
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