diff options
Diffstat (limited to 'runtime/barrier.cc')
| -rw-r--r-- | runtime/barrier.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/barrier.cc b/runtime/barrier.cc index d144591daf..a6cc9ba053 100644 --- a/runtime/barrier.cc +++ b/runtime/barrier.cc @@ -40,6 +40,11 @@ void Barrier::Pass(Thread* self) { SetCountLocked(self, count_ - 1); } +void Barrier::IncrementNoWait(Thread* self) { + MutexLock mu(self, *GetLock()); + SetCountLocked(self, count_ + 1); +} + void Barrier::Wait(Thread* self) { Increment(self, -1); } |