1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00

Add one assert

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Joona Kiiski 2010-02-23 12:07:58 +02:00 committed by Marco Costalba
parent c974d9ef33
commit 5c944fb3b4

View file

@ -2594,6 +2594,7 @@ namespace {
// instead of wasting CPU time polling for work.
while (AllThreadsShouldSleep || threadID >= ActiveThreads)
{
assert(!waitSp);
assert(threadID != 0);
threads[threadID].state = THREAD_SLEEPING;