From: simonmar Date: Fri, 4 Nov 2005 15:31:30 +0000 (+0000) Subject: [project @ 2005-11-04 15:31:30 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~69 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=9e780871543ab57a21de4a8ee588940d6479de11;p=ghc-hetmet.git [project @ 2005-11-04 15:31:30 by simonmar] We shouldn't call closeCondition() on the condition in discardTask(), we're just freeing the Task for later use. --- diff --git a/ghc/rts/Task.c b/ghc/rts/Task.c index 44bbb95..bc140c1 100644 --- a/ghc/rts/Task.c +++ b/ghc/rts/Task.c @@ -175,9 +175,6 @@ void 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;