Lines Matching refs:__predict_true
152 if (__predict_true(atomic_compare_exchange_strong_explicit(&mutex.owner_tid, in PIMutexTryLock()
181 if (__predict_true(ret == 0)) { in PIMutexTimedLock()
195 if (__predict_true(mutex.type == PTHREAD_MUTEX_NORMAL)) { in PIMutexUnlock()
196 if (__predict_true(atomic_compare_exchange_strong_explicit(&mutex.owner_tid, in PIMutexUnlock()
218 if (__predict_true(atomic_compare_exchange_strong_explicit(&mutex.owner_tid, in PIMutexUnlock()
506 if (__predict_true(attr == nullptr)) { in pthread_mutex_init()
561 if (__predict_true(atomic_compare_exchange_strong_explicit(&mutex->state, &old_state, in NormalMutexTryLock()
584 if (__predict_true(NormalMutexTryLock(mutex, shared) == 0)) { in NormalMutexLock()
718 if ( __predict_true(mtype == MUTEX_TYPE_BITS_NORMAL) ) { in MutexLockWithTimeout()
740 if (__predict_true(atomic_compare_exchange_strong_explicit(&mutex->state, &old_state, in MutexLockWithTimeout()
757 if (__predict_true(atomic_compare_exchange_weak_explicit(&mutex->state, in MutexLockWithTimeout()
822 if (__predict_true(mtype == MUTEX_TYPE_BITS_NORMAL)) { in pthread_mutex_lock()
824 if (__predict_true(NonPI::NormalMutexTryLock(mutex, shared) == 0)) { in pthread_mutex_lock()
831 if (__predict_true(PIMutexTryLock(m) == 0)) { in pthread_mutex_lock()
858 if (__predict_true(mtype == MUTEX_TYPE_BITS_NORMAL)) { in pthread_mutex_unlock()
907 if (__predict_true(mtype == MUTEX_TYPE_BITS_NORMAL)) { in pthread_mutex_trylock()
937 if (__predict_true(atomic_compare_exchange_strong_explicit(&mutex->state, &old_state, in pthread_mutex_trylock()
968 if (__predict_true(mtype == MUTEX_TYPE_BITS_NORMAL)) { in __pthread_mutex_timedlock()
970 if (__predict_true(NonPI::NormalMutexTryLock(mutex, shared) == 0)) { in __pthread_mutex_timedlock()