1
0
Fork 0
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:
Marco Costalba 2010-02-27 13:26:04 +01:00
parent 111aa44662
commit 57340c109b

View file

@ -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);
}
}