diff options
author | rpj <rpj> | 2004-10-19 13:24:40 +0000 |
---|---|---|
committer | rpj <rpj> | 2004-10-19 13:24:40 +0000 |
commit | 8c8bcc5d1737002a9d153105c16b262d2e201efa (patch) | |
tree | ba43c6049cc7e361a3eb875015aeb4032c01c559 /sem_post.c | |
parent | 45b1b8cb2a6588f9316f780d8cefe11c181a9a17 (diff) |
Semaphore speedups - alpha, but passes testsuite
Diffstat (limited to 'sem_post.c')
-rw-r--r-- | sem_post.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -85,7 +85,8 @@ sem_post (sem_t * sem) #else /* NEED_SEM */ - else if (!ReleaseSemaphore ((*sem)->sem, 1, 0)) + else if (InterlockedExchangeAdd((LPLONG) &(*sem)->value, (LONG) 1) < 0 + && !ReleaseSemaphore((*sem)->sem, 1, NULL)) #endif /* NEED_SEM */ |