The non-benaphore of the Semaphore class just didn't work correctly...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1887 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
9616fa5dfd
commit
b71ba910ba
@ -22,9 +22,11 @@ class Semaphore {
|
||||
public:
|
||||
Semaphore(const char *name = "bfs sem")
|
||||
:
|
||||
fSemaphore(create_sem(0, name))
|
||||
#ifdef USE_BENAPHORE
|
||||
, fCount(1)
|
||||
fSemaphore(create_sem(0, name)),
|
||||
fCount(1)
|
||||
#else
|
||||
fSemaphore(create_sem(1, name))
|
||||
#endif
|
||||
{
|
||||
#ifndef USER
|
||||
|
Loading…
Reference in New Issue
Block a user