mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 08:36:33 +08:00
Simplify debug functions
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -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