summaryrefslogtreecommitdiff
path: root/ptw32_increase_semaphore.c
diff options
context:
space:
mode:
Diffstat (limited to 'ptw32_increase_semaphore.c')
-rw-r--r--ptw32_increase_semaphore.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ptw32_increase_semaphore.c b/ptw32_increase_semaphore.c
index 9eafaed..a4a8e84 100644
--- a/ptw32_increase_semaphore.c
+++ b/ptw32_increase_semaphore.c
@@ -48,25 +48,25 @@
#ifdef NEED_SEM
INLINE BOOL
-ptw32_increase_semaphore(sem_t * sem, unsigned int n)
+ptw32_increase_semaphore (sem_t * sem, unsigned int n)
{
BOOL result;
register sem_t s = *sem;
- EnterCriticalSection(&s->sem_lock_cs);
+ EnterCriticalSection (&s->sem_lock_cs);
if (s->value + n > s->value)
{
- s->value += n;
- SetEvent(s->event);
- result = PTW32_TRUE;
+ s->value += n;
+ SetEvent (s->event);
+ result = PTW32_TRUE;
}
else
{
- result = PTW32_FALSE;
+ result = PTW32_FALSE;
}
- LeaveCriticalSection(&s->sem_lock_cs);
+ LeaveCriticalSection (&s->sem_lock_cs);
return result;
}