diff options
author | rpj <rpj> | 2004-10-21 08:20:20 +0000 |
---|---|---|
committer | rpj <rpj> | 2004-10-21 08:20:20 +0000 |
commit | f84df26e12431bb9ecd07fbc52c804538635901f (patch) | |
tree | 11e546419ba474042bf593445e7ebc0e3f2421fa | |
parent | 5d4eb88954fa2402dcce06ccecde800da1c8703f (diff) |
''
-rw-r--r-- | sem_post.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -85,7 +85,7 @@ sem_post (sem_t * sem) #else /* NEED_SEM */ - else if (InterlockedExchangeAdd((LPLONG) &(*sem)->value, (LONG) 1) < 0 + else if (InterlockedIncrement((LPLONG) &(*sem)->value) <= 0 && !ReleaseSemaphore((*sem)->sem, 1, NULL)) #endif /* NEED_SEM */ |