mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
nptl: Replace lll_futex_wake with futex-internal.h
The idea is to make NPTL implementation to use on the functions provided by futex-internal.h. Checked on x86_64-linux-gnu and i686-linux-gnu. Reviewed-by: Lukasz Majewski <lukma@denx.de>
This commit is contained in:
@@ -162,7 +162,7 @@ __pthread_mutex_unlock_full (pthread_mutex_t *mutex, int decr)
|
||||
private = PTHREAD_ROBUST_MUTEX_PSHARED (mutex);
|
||||
if (__glibc_unlikely ((atomic_exchange_rel (&mutex->__data.__lock, 0)
|
||||
& FUTEX_WAITERS) != 0))
|
||||
lll_futex_wake (&mutex->__data.__lock, 1, private);
|
||||
futex_wake ((unsigned int *) &mutex->__data.__lock, 1, private);
|
||||
|
||||
/* We must clear op_pending after we release the mutex.
|
||||
FIXME However, this violates the mutex destruction requirements
|
||||
@@ -332,8 +332,8 @@ __pthread_mutex_unlock_full (pthread_mutex_t *mutex, int decr)
|
||||
&oldval, newval));
|
||||
|
||||
if ((oldval & ~PTHREAD_MUTEX_PRIO_CEILING_MASK) > 1)
|
||||
lll_futex_wake (&mutex->__data.__lock, 1,
|
||||
PTHREAD_MUTEX_PSHARED (mutex));
|
||||
futex_wake ((unsigned int *)&mutex->__data.__lock, 1,
|
||||
PTHREAD_MUTEX_PSHARED (mutex));
|
||||
|
||||
int oldprio = newval >> PTHREAD_MUTEX_PRIO_CEILING_SHIFT;
|
||||
|
||||
|
Reference in New Issue
Block a user