Synchronize with possible concurrent writers to the NvComputer object

This commit is contained in:
Cameron Gutman 2023-10-01 17:46:27 -05:00
commit 49e0679864
3 changed files with 8 additions and 2 deletions

View file

@ -267,7 +267,7 @@ private:
QVector<MdnsPendingComputer*> m_PendingResolution;
CompatFetcher m_CompatFetcher;
DelayedFlushThread* m_DelayedFlushThread;
QMutex m_DelayedFlushMutex;
QMutex m_DelayedFlushMutex; // Lock ordering: Must never be acquired while holding NvComputer lock
QWaitCondition m_DelayedFlushCondition;
bool m_NeedsDelayedFlush;
};