mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Remove some ifdef from wake_sleeping_thread()
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -2562,16 +2562,9 @@ split_point_start: // At split points actual search starts from here
|
||||
|
||||
void ThreadsManager::wake_sleeping_thread(int threadID) {
|
||||
|
||||
assert(threadID > 0);
|
||||
assert(threads[threadID].state == THREAD_AVAILABLE);
|
||||
|
||||
#if !defined(_MSC_VER)
|
||||
pthread_mutex_lock(&WaitLock);
|
||||
pthread_cond_signal(&WaitCond[threadID]);
|
||||
pthread_mutex_unlock(&WaitLock);
|
||||
#else
|
||||
SetEvent(WaitCond[threadID]);
|
||||
#endif
|
||||
lock_grab(&WaitLock);
|
||||
cond_signal(&WaitCond[threadID]);
|
||||
lock_release(&WaitLock);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user