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:
Axel Dörfler 2002-11-09 04:32:47 +00:00
parent 9616fa5dfd
commit b71ba910ba

View File

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