scheduler: Add Clang thread safety annotations for variables guarded by m_cs_callbacks_pending

This commit is contained in:
practicalswift 2018-04-30 11:17:06 +02:00
parent 219970524d
commit 244f4baf0f

View File

@ -95,8 +95,8 @@ private:
CScheduler *m_pscheduler;
CCriticalSection m_cs_callbacks_pending;
std::list<std::function<void (void)>> m_callbacks_pending;
bool m_are_callbacks_running = false;
std::list<std::function<void (void)>> m_callbacks_pending GUARDED_BY(m_cs_callbacks_pending);
bool m_are_callbacks_running GUARDED_BY(m_cs_callbacks_pending) = false;
void MaybeScheduleProcessQueue();
void ProcessQueue();