mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
Update.
2001-05-25 Ulrich Drepper <drepper@redhat.com> * oldsemaphore.c (__old_sem_wait): Clear p_nextwaiting before returning successfully. Patch by Gene Cooperman <gene@ccs.neu.edu>.
This commit is contained in:
parent
47e5d2a8b1
commit
17ffa4986d
@ -1,3 +1,9 @@
|
|||||||
|
2001-05-25 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* oldsemaphore.c (__old_sem_wait): Clear p_nextwaiting before
|
||||||
|
returning successfully.
|
||||||
|
Patch by Gene Cooperman <gene@ccs.neu.edu>.
|
||||||
|
|
||||||
2001-05-24 Ulrich Drepper <drepper@redhat.com>
|
2001-05-24 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* spinlock.c (__pthread_lock) [HAS_COMPARE_AND_SWAP]: Before doing any
|
* spinlock.c (__pthread_lock) [HAS_COMPARE_AND_SWAP]: Before doing any
|
||||||
|
@ -113,7 +113,8 @@ int __old_sem_wait(old_sem_t * sem)
|
|||||||
while (! sem_compare_and_swap(sem, oldstatus, newstatus));
|
while (! sem_compare_and_swap(sem, oldstatus, newstatus));
|
||||||
if (newstatus & 1) {
|
if (newstatus & 1) {
|
||||||
/* We got the semaphore. */
|
/* We got the semaphore. */
|
||||||
__pthread_set_own_extricate_if(self, 0);
|
__pthread_set_own_extricate_if(self, 0);
|
||||||
|
self->p_nextwaiting = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* Wait for sem_post or cancellation */
|
/* Wait for sem_post or cancellation */
|
||||||
|
Loading…
Reference in New Issue
Block a user