mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Do not wait for sleeping in init_threads()
We can't do it with full guarantee anyway because there is always a possible race between the setting of state to THREAD_SLEEPING and actual sleeping. So just remove the not perfect code to avoid misunderstandings. This reflects what we have done in wake_sleeping_threads() in the previous patch. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
111aa44662
commit
57340c109b
1 changed files with 0 additions and 3 deletions
|
@ -2768,9 +2768,6 @@ namespace {
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue