mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 10:57:43 +00:00
We don't need lpThreadId parameter in CreateThread()
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>
This commit is contained in:
+1
-2
@@ -2759,8 +2759,7 @@ namespace {
|
|||||||
#if !defined(_MSC_VER)
|
#if !defined(_MSC_VER)
|
||||||
ok = (pthread_create(pthread, NULL, init_thread, (void*)(&i)) == 0);
|
ok = (pthread_create(pthread, NULL, init_thread, (void*)(&i)) == 0);
|
||||||
#else
|
#else
|
||||||
DWORD iID[1];
|
ok = (CreateThread(NULL, 0, init_thread, (LPVOID)(&i), 0, NULL) != NULL);
|
||||||
ok = (CreateThread(NULL, 0, init_thread, (LPVOID)(&i), 0, iID) != NULL);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!ok)
|
if (!ok)
|
||||||
|
|||||||
Reference in New Issue
Block a user