diff options
Diffstat (limited to 'runtime/barrier.h')
| -rw-r--r-- | runtime/barrier.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/barrier.h b/runtime/barrier.h index 432df76e16..4c94a144bd 100644 --- a/runtime/barrier.h +++ b/runtime/barrier.h @@ -51,6 +51,9 @@ class Barrier { // Pass through the barrier, decrement the count but do not block. void Pass(Thread* self) REQUIRES(!GetLock()); + // Increment the barrier but do not block. The caller should ensure that it + // decrements/passes it eventually. + void IncrementNoWait(Thread* self) REQUIRES(!GetLock()); // Decrement the count, then wait until the count is zero. void Wait(Thread* self) REQUIRES(!GetLock()); |