projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add missing files
[ardour.git]
/
libs
/
pbd
/
pbd
/
semaphore.h
diff --git
a/libs/pbd/pbd/semaphore.h
b/libs/pbd/pbd/semaphore.h
index f1b07ea4f527aa9ae8328d92709760e445285f53..e54063a15a8ff31aefc5dc03909d954c080c6d27 100644
(file)
--- a/
libs/pbd/pbd/semaphore.h
+++ b/
libs/pbd/pbd/semaphore.h
@@
-81,7
+81,7
@@
private:
inline
Semaphore::Semaphore(unsigned initial)
{
inline
Semaphore::Semaphore(unsigned initial)
{
- if (semaphore_create(mach_task_self(), &
sem->sem, SYNC_POLICY_FIFO, 0
)) {
+ if (semaphore_create(mach_task_self(), &
_sem, SYNC_POLICY_FIFO, initial
)) {
throw failed_constructor();
}
}
throw failed_constructor();
}
}
@@
-148,7
+148,7
@@
Semaphore::wait()
inline bool
Semaphore::try_wait()
{
inline bool
Semaphore::try_wait()
{
- return WaitForSingleObject(
sem->
sem, 0) == WAIT_OBJECT_0;
+ return WaitForSingleObject(
_
sem, 0) == WAIT_OBJECT_0;
}
#else /* !defined(__APPLE__) && !defined(_WIN32) */
}
#else /* !defined(__APPLE__) && !defined(_WIN32) */