aboutsummaryrefslogtreecommitdiff
path: root/src/scheduler.h
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-04-30 11:17:06 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-04-30 11:17:06 +0200
commit244f4baf0f033b01cca24627bd09d17310f5ed14 (patch)
treefbfa516a2f7a5e81cc5918c9491d045f2053bd69 /src/scheduler.h
parent219970524d8a41c6924f0b794de1250520607cfd (diff)
scheduler: Add Clang thread safety annotations for variables guarded by m_cs_callbacks_pending
Diffstat (limited to 'src/scheduler.h')
-rw-r--r--src/scheduler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scheduler.h b/src/scheduler.h
index a41838a295..7169dceee5 100644
--- a/src/scheduler.h
+++ b/src/scheduler.h
@@ -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();