commit | 514be65ad8d3340f53fd9591035352ed285811ba | [log] [tgz] |
---|---|---|
author | Jenkins <bsgcomp@arm.com> | Thu Feb 28 12:25:18 2019 +0000 |
committer | Anthony Barbier <anthony.barbier@arm.com> | Thu Feb 28 13:38:08 2019 +0000 |
tree | abe236598d76078a537fd247813e287d5bf34acd | |
parent | 3d2d44ef55ab6b08afda8be48301ce3c55c7bc67 [diff] |
arm_compute v19.02 Change-Id: I853a3ecf38f206da13c1b03640c8adf73c20477c
diff --git a/support/Semaphore.h b/support/Semaphore.h index 636d5ca..85749e1 100644 --- a/support/Semaphore.h +++ b/support/Semaphore.h
@@ -46,8 +46,10 @@ /** Signals a semaphore */ inline void signal() { - std::unique_lock<std::mutex> lock(_m); - ++_value; + { + std::lock_guard<std::mutex> lock(_m); + ++_value; + } _cv.notify_one(); } /** Waits on a semaphore */