13
0

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:
Paul Davis 2010-11-16 20:01:01 +00:00
parent 8e2f6b9e0f
commit 3d0a53a1ad
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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