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