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
@ -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…
Reference in New Issue
Block a user