mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 05:07:46 +00:00
Simplify debug functions
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+2
-2
@@ -176,10 +176,10 @@ void ThreadsManager::init() {
|
||||
threads[i].threadID = i;
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
threads[i].handle = CreateThread(NULL, 0, start_routine, (LPVOID)&threads[i], 0, NULL);
|
||||
threads[i].handle = CreateThread(NULL, 0, start_routine, &threads[i], 0, NULL);
|
||||
bool ok = (threads[i].handle != NULL);
|
||||
#else
|
||||
bool ok = !pthread_create(&threads[i].handle, NULL, start_routine, (void*)&threads[i]);
|
||||
bool ok = !pthread_create(&threads[i].handle, NULL, start_routine, &threads[i]);
|
||||
#endif
|
||||
|
||||
if (!ok)
|
||||
|
||||
Reference in New Issue
Block a user