Changeset 4db870b2 in raul


Ignore:
Timestamp:
07/23/17 03:48:42 (5 weeks ago)
Author:
David Robillard <d@…>
Branches:
master
Parents:
33282f1
git-author:
David Robillard <d@…> (07/23/17 03:46:48)
git-committer:
David Robillard <d@…> (07/23/17 03:48:42)
Message:

Fix semaphore with initial count on Darwin

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEWS

    rd348561 r4db870b2  
    1010  * Add managed_ptr for automatic real-time safe garbage collection 
    1111  * Implement Semaphore for Windows 
     12  * Fix semaphore with initial count on Darwin 
    1213  * Improve test suite 
    1314  * Remove several questionable classes 
     
    1516  * Update license to GPL3+ 
    1617 
    17  -- David Robillard <d@drobilla.net>  Mon, 27 Feb 2017 20:36:43 +0100 
     18 -- David Robillard <d@drobilla.net>  Sun, 23 Jul 2017 12:40:39 +0200 
    1819 
    1920raul (0.8.0) stable; 
  • raul/Semaphore.hpp

    r33282f1 r4db870b2  
    103103Semaphore::init(unsigned initial) 
    104104{ 
    105     if (semaphore_create(mach_task_self(), &_sem, SYNC_POLICY_FIFO, 0)) { 
     105    if (semaphore_create(mach_task_self(), &_sem, SYNC_POLICY_FIFO, initial)) { 
    106106        return false; 
    107107    } 
Note: See TracChangeset for help on using the changeset viewer.