summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--raul/Semaphore.hpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 0c33fd9..9953c05 100644
--- a/NEWS
+++ b/NEWS
@@ -9,12 +9,13 @@ raul (0.8.9) unstable;
* Add ThreadVar, a thread-specific variable class
* Add managed_ptr for automatic real-time safe garbage collection
* Implement Semaphore for Windows
+ * Fix semaphore with initial count on Darwin
* Improve test suite
* Remove several questionable classes
* Add INSTALL file
* Update license to GPL3+
- -- David Robillard <d@drobilla.net> Mon, 27 Feb 2017 20:36:43 +0100
+ -- David Robillard <d@drobilla.net> Sun, 23 Jul 2017 12:40:39 +0200
raul (0.8.0) stable;
diff --git a/raul/Semaphore.hpp b/raul/Semaphore.hpp
index 7edb973..31739d2 100644
--- a/raul/Semaphore.hpp
+++ b/raul/Semaphore.hpp
@@ -102,7 +102,7 @@ private:
inline bool
Semaphore::init(unsigned initial)
{
- if (semaphore_create(mach_task_self(), &_sem, SYNC_POLICY_FIFO, 0)) {
+ if (semaphore_create(mach_task_self(), &_sem, SYNC_POLICY_FIFO, initial)) {
return false;
}
return true;