summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sem_close.c
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2010-02-16 12:27:18 -0800
committerAustin Foxley <austinf@cetoncorp.com>2010-02-16 12:27:18 -0800
commita032a6587011cbdac8c2f7e11f15dc4e592bbb55 (patch)
treeb8d8dfc6abf0168e098223c2134a3e4bd7640942 /libpthread/nptl/sem_close.c
parent70f1d42b13a741f603472f405299e5d2938aa728 (diff)
mass sync with glibc nptl
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libpthread/nptl/sem_close.c')
-rw-r--r--libpthread/nptl/sem_close.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libpthread/nptl/sem_close.c b/libpthread/nptl/sem_close.c
index a2bcc7179..dcf30f7b7 100644
--- a/libpthread/nptl/sem_close.c
+++ b/libpthread/nptl/sem_close.c
@@ -41,12 +41,13 @@ walker (const void *inodep, const VISIT which, const int depth)
int
-sem_close (sem_t *sem)
+sem_close (
+ sem_t *sem)
{
int result = 0;
/* Get the lock. */
- lll_lock (__sem_mappings_lock);
+ lll_lock (__sem_mappings_lock, LLL_PRIVATE);
/* Locate the entry for the mapping the caller provided. */
rec = NULL;
@@ -74,7 +75,7 @@ sem_close (sem_t *sem)
}
/* Release the lock. */
- lll_unlock (__sem_mappings_lock);
+ lll_unlock (__sem_mappings_lock, LLL_PRIVATE);
return result;
}