summaryrefslogtreecommitdiff
path: root/runtime/barrier.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/barrier.h')
-rw-r--r--runtime/barrier.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/barrier.h b/runtime/barrier.h
index 22f08e1a3e..e335c327be 100644
--- a/runtime/barrier.h
+++ b/runtime/barrier.h
@@ -41,6 +41,9 @@ class Barrier {
// Increment the count by delta, wait on condition if count is non zero.
void Increment(Thread* self, int delta);
+ // Increment the count by delta, wait on condition if count is non zero, with a timeout
+ void Increment(Thread* self, int delta, uint32_t timeout_ms) LOCKS_EXCLUDED(lock_);
+
private:
void SetCountLocked(Thread* self, int count) EXCLUSIVE_LOCKS_REQUIRED(lock_);