From 68eb7e77f16e96642d90eeec0abe7312631ae2ac Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 27 Feb 2010 17:22:19 +0100 Subject: [PATCH 1/1] Revert previous patch It raises an assert under Windows, it is not clear why but it happens that idle_loop() is called with incorrect threadID and the assert triggered is: assert(threadID >= 0 && threadID < MAX_THREADS); So revert the patch for now, but we should understand why it fails. Signed-off-by: Marco Costalba --- src/search.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/search.cpp b/src/search.cpp index 13f333d9..4fd1c03d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2768,6 +2768,9 @@ 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); } } -- 2.39.2