diff options
Diffstat (limited to 'sysdeps/htl/sem-getvalue.c')
-rw-r--r-- | sysdeps/htl/sem-getvalue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/htl/sem-getvalue.c b/sysdeps/htl/sem-getvalue.c index 9c8188e866..2d72a63824 100644 --- a/sysdeps/htl/sem-getvalue.c +++ b/sysdeps/htl/sem-getvalue.c @@ -22,7 +22,7 @@ int __sem_getvalue (sem_t *restrict sem, int *restrict value) { - __pthread_spin_lock (&sem->__lock); + __pthread_spin_wait (&sem->__lock); *value = sem->__value; __pthread_spin_unlock (&sem->__lock); |