Home
last modified time | relevance | path

Searched refs:new_state (Results 1 – 3 of 3) sorted by relevance

/bionic/libc/upstream-netbsd/common/lib/libc/stdlib/
Drandom.c411 int *new_state; in setstate() local
418 new_state = (int *)(void *)arg_state; in setstate()
419 type = (int)(new_state[0] % MAX_TYPES); in setstate()
420 rear = (int)(new_state[0] / MAX_TYPES); in setstate()
441 state = (int *) (new_state + 1); in setstate()
/bionic/libc/bionic/
Dpthread_rwlock.cpp277 int new_state = old_state + STATE_READER_COUNT_CHANGE_STEP; in __pthread_rwlock_tryrdlock() local
278 …if (__predict_false(!__state_owned_by_readers(new_state))) { // Happens when reader count overflow… in __pthread_rwlock_tryrdlock()
281 if (__predict_true(atomic_compare_exchange_weak_explicit(&rwlock->state, &old_state, new_state, in __pthread_rwlock_tryrdlock()
Dpthread_mutex.cpp480 int new_state = MUTEX_STATE_BITS_FLIP_CONTENTION(old_state); in __pthread_mutex_lock_with_timeout() local
482 &old_state, new_state, in __pthread_mutex_lock_with_timeout()
487 old_state = new_state; in __pthread_mutex_lock_with_timeout()