diff options
Diffstat (limited to 'runtime/monitor.h')
-rw-r--r-- | runtime/monitor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/monitor.h b/runtime/monitor.h index d7de8a5..bfd8545 100644 --- a/runtime/monitor.h +++ b/runtime/monitor.h @@ -174,6 +174,9 @@ class Monitor { Mutex monitor_lock_ DEFAULT_MUTEX_ACQUIRED_AFTER; ConditionVariable monitor_contenders_ GUARDED_BY(monitor_lock_); + // Number of people waiting on the condition. + size_t num_waiters_ GUARDED_BY(monitor_lock_); + // Which thread currently owns the lock? Thread* volatile owner_ GUARDED_BY(monitor_lock_); |