You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
249 if (m_messageQueue.empty()) {
CID 1508990: Thread deadlock (ORDER_REVERSAL) [[select issue](https://scan6.scan.coverity.com/defectInstanceId=34625625&fileInstanceId=157339966&mergedDefectId=1508990)]
250 ::sem_wait(&m_workerSem);
251 m_messageQueueMutex.unlock();
252 std::unique_lock<std::mutex> lock(q_mutex);
253 q_checker.wait(lock, [] { return q_ready; });
CID 1509000 (#1 of 1): Data race condition (MISSING_LOCK)
5. missing_lock: Accessing q_ready without holding lock q_mutex. Elsewhere, q_ready is accessed with q_mutex held 3 out of 4 times (3 of these accesses strongly imply that it is necessary).
254 q_ready = false;
255 continue;
256 }
Activity
duke8253 commentedon Aug 23, 2023
I think this is a false positive, since we already acquired the lock on line 252
std::unique_lock<std::mutex> lock(q_mutex);