Commit bbe90cbe authored by Simon Marlow's avatar Simon Marlow
Browse files

fix non-threaded way

parent 1dfac5c8
......@@ -176,7 +176,13 @@ discardTask (Task *task)
{
ASSERT_LOCK_HELD(&sched_mutex);
if (!task->stopped) {
IF_DEBUG(scheduler,sched_belch("discarding task %p",(void *)task->id));
IF_DEBUG(scheduler,sched_belch("discarding task %p",
#ifdef THREADED_RTS
(void *)task->id
#else
(void *)task
#endif
));
task->cap = NULL;
task->tso = NULL;
task->stopped = rtsTrue;
......
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