Searched refs:oldv (Results 1 – 1 of 1) sorted by relevance
1049 int oldv, counter; in pthread_mutex_lock() local1061 oldv = mutex->value; in pthread_mutex_lock()1062 counter = (oldv + (1 << MUTEX_COUNTER_SHIFT)) & MUTEX_COUNTER_MASK; in pthread_mutex_lock()1063 mutex->value = (oldv & ~MUTEX_COUNTER_MASK) | counter; in pthread_mutex_lock()1079 int oldv; in pthread_mutex_lock() local1082 oldv = mutex->value; in pthread_mutex_lock()1083 if (oldv == mtype) { /* uncontended released lock => 1 or 2 */ in pthread_mutex_lock()1085 } else if ((oldv & 3) == 1) { /* locked state 1 => state 2 */ in pthread_mutex_lock()1086 oldv ^= 3; in pthread_mutex_lock()1087 mutex->value = oldv; in pthread_mutex_lock()[all …]