projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
221e74f
)
Put the task on the free list in workerTaskStop
author
Ian Lynagh
<igloo@earth.li>
Fri, 15 Dec 2006 16:42:10 +0000
(16:42 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Fri, 15 Dec 2006 16:42:10 +0000
(16:42 +0000)
rts/Task.c
patch
|
blob
|
history
diff --git
a/rts/Task.c
b/rts/Task.c
index
551f137
..
9aa43c0
100644
(file)
--- a/
rts/Task.c
+++ b/
rts/Task.c
@@
-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