summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2846bc8)
We shouldn't call closeCondition() on the condition in discardTask(),
we're just freeing the Task for later use.
discardTask (Task *task)
{
ASSERT_LOCK_HELD(&sched_mutex);
discardTask (Task *task)
{
ASSERT_LOCK_HELD(&sched_mutex);
-#if defined(THREADED_RTS)
- closeCondition(&task->cond);
-#endif
task->stopped = rtsTrue;
task->cap = NULL;
task->next = task_free_list;
task->stopped = rtsTrue;
task->cap = NULL;
task->next = task_free_list;