mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
fix linux side of semaphore abstraction
git-svn-id: svn://localhost/ardour2/branches/3.0@8050 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
8e2f6b9e0f
commit
3d0a53a1ad
2 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ class ProcessSemaphore {
|
|||
sem_t* _sem;
|
||||
sem_t* ptr_to_sem() const { return _sem; }
|
||||
#else
|
||||
sem_t _sem;
|
||||
mutable sem_t _sem;
|
||||
sem_t* ptr_to_sem() const { return &_sem; }
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ ProcessSemaphore::ProcessSemaphore (const char* name, int val)
|
|||
}
|
||||
|
||||
#else
|
||||
if (sem_init (&sem, 0, val)) {
|
||||
if (sem_init (&_sem, 0, val)) {
|
||||
throw failed_constructor ();
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue