cout << "Failed to create thread number " << i << endl;
Application::exit_with_failure();
}
-
- // Wait until the thread has finished launching and is gone to sleep
- while (threads[i].state != THREAD_SLEEPING);
}
}
if (ActiveThreads == 1)
return;
- for (int i = 1; i < ActiveThreads; i++)
- assert(threads[i].state == THREAD_SLEEPING);
-
#if !defined(_MSC_VER)
pthread_mutex_lock(&WaitLock);
pthread_cond_broadcast(&WaitCond);