Skip to content
Snippets Groups Projects
Commit 5d48ad27 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Put the task on the free list in workerTaskStop

parent 221e74f6
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment