aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/semaphore.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/semaphore.c')
-rw-r--r--linuxthreads/semaphore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linuxthreads/semaphore.c b/linuxthreads/semaphore.c
index cb23a71..eca68d2 100644
--- a/linuxthreads/semaphore.c
+++ b/linuxthreads/semaphore.c
@@ -77,6 +77,7 @@ int sem_trywait(sem_t * sem)
sem->sem_value--;
retval = 0;
}
+ __pthread_unlock((struct _pthread_fastlock *) &sem->sem_lock);
return retval;
}