Commit 2ca13796 authored by simonmar's avatar simonmar
Browse files

[project @ 2003-12-15 16:45:23 by simonmar]

Add assertion.
parent 410a99e4
......@@ -150,9 +150,7 @@ void grabCapability(Capability** cap)
free_capabilities = (*cap)->link;
rts_n_free_capabilities--;
#endif
#ifdef RTS_SUPPORTS_THREADS
IF_DEBUG(scheduler, sched_belch("worker: got capability"));
#endif
IF_DEBUG(scheduler, sched_belch("worker: got capability"));
}
/*
......@@ -362,6 +360,7 @@ passCapability(Mutex* pMutex, Capability* cap, Condition *pTargetThreadCond)
#ifdef SMP
#error SMP version not implemented
#endif
ASSERT(rts_n_free_capabilities == 0);
rts_n_free_capabilities = 1;
signalCondition(pTargetThreadCond);
passTarget = pTargetThreadCond;
......
Supports Markdown
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