mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[coverity] 1543089 Data race condition
This commit is contained in:
@@ -881,12 +881,13 @@ static void* TimerQueueThread(void* arg)
|
||||
|
||||
status = pthread_cond_timedwait(&(timerQueue->cond), &(timerQueue->cond_mutex), &timeout);
|
||||
FireExpiredTimerQueueTimers(timerQueue);
|
||||
const BOOL bCancelled = timerQueue->bCancelled;
|
||||
pthread_mutex_unlock(&(timerQueue->cond_mutex));
|
||||
|
||||
if ((status != ETIMEDOUT) && (status != 0))
|
||||
break;
|
||||
|
||||
if (timerQueue->bCancelled)
|
||||
if (bCancelled)
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user