]> git.sesse.net Git - stockfish/commitdiff
We don't need lpThreadId parameter in CreateThread()
authorMarco Costalba <mcostalba@gmail.com>
Sun, 28 Feb 2010 10:53:29 +0000 (11:53 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 28 Feb 2010 22:36:01 +0000 (23:36 +0100)
Under Windows we use CreateThread() to setup threads and
we pass a pointer to a variable that receives the thread
identifier, but this parameter is optional and we don't
use it, so remove it.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp

index c692baf5a72e3db774b2e728f25e1c91e93b3b31..eb038d0a8e507f8d8101cc4c1ef31c8de6d2685c 100644 (file)
@@ -2759,8 +2759,7 @@ namespace {
 #if !defined(_MSC_VER)
         ok = (pthread_create(pthread, NULL, init_thread, (void*)(&i)) == 0);
 #else
-        DWORD iID[1];
-        ok = (CreateThread(NULL, 0, init_thread, (LPVOID)(&i), 0, iID) != NULL);
+        ok = (CreateThread(NULL, 0, init_thread, (LPVOID)(&i), 0, NULL) != NULL);
 #endif
 
         if (!ok)