Commit 7d83458f authored by simonmar's avatar simonmar
Browse files

[project @ 2003-09-23 15:05:18 by simonmar]

Fixes for the DEBUG case.
parent abbc5a0b
......@@ -149,9 +149,11 @@ void grabCapability(Capability** cap)
free_capabilities = (*cap)->link;
rts_n_free_capabilities--;
#endif
IF_DEBUG(scheduler,
fprintf(stderr,"worker thread (%p): got capability\n",
osThreadId()));
#ifdef RTS_SUPPORTS_THREADS
IF_DEBUG(scheduler,
fprintf(stderr,"worker thread (%p): got capability\n",
osThreadId()));
#endif
}
/*
......@@ -199,9 +201,11 @@ void releaseCapability(Capability* cap
signalCondition(&thread_ready_cond);
}
#endif
IF_DEBUG(scheduler,
fprintf(stderr,"worker thread (%p): released capability\n",
osThreadId()));
#ifdef RTS_SUPPORTS_THREADS
IF_DEBUG(scheduler,
fprintf(stderr,"worker thread (%p): released capability\n",
osThreadId()));
#endif
return;
}
......
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