diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-08-01 17:16:42 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-08-01 17:16:42 +0000 |
commit | e08057b1ff24258dd7460ad81e84491f7a28b424 (patch) | |
tree | f63a12d52cbc1796013a84382fe25f57ac675204 /nptl/pthread_cond_destroy.c | |
parent | 4baf42dd00e8cafc79e2a3c94ef8effa6ef0a921 (diff) |
Updated to fedora-glibc-20070801T1703cvs/fedora-glibc-2_6_90-2
Diffstat (limited to 'nptl/pthread_cond_destroy.c')
-rw-r--r-- | nptl/pthread_cond_destroy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nptl/pthread_cond_destroy.c b/nptl/pthread_cond_destroy.c index 8574b6118f..53b5cd272f 100644 --- a/nptl/pthread_cond_destroy.c +++ b/nptl/pthread_cond_destroy.c @@ -27,13 +27,13 @@ __pthread_cond_destroy (cond) pthread_cond_t *cond; { /* Make sure we are alone. */ - lll_mutex_lock (cond->__data.__lock); + lll_lock (cond->__data.__lock, /* XYZ */ LLL_SHARED); if (cond->__data.__total_seq > cond->__data.__wakeup_seq) { /* If there are still some waiters which have not been woken up, this is an application bug. */ - lll_mutex_unlock (cond->__data.__lock); + lll_unlock (cond->__data.__lock, /* XYZ */ LLL_SHARED); return EBUSY; } @@ -66,13 +66,13 @@ __pthread_cond_destroy (cond) do { - lll_mutex_unlock (cond->__data.__lock); + lll_unlock (cond->__data.__lock, /* XYZ */ LLL_SHARED); lll_futex_wait (&cond->__data.__nwaiters, nwaiters, // XYZ check mutex flag LLL_SHARED); - lll_mutex_lock (cond->__data.__lock); + lll_lock (cond->__data.__lock, /* XYZ */ LLL_SHARED); nwaiters = cond->__data.__nwaiters; } |