Searched refs:s_lock (Results 1 – 5 of 5) sorted by relevance
36 int s_lock; member42 lock->s_lock = 0; in simplelock_init()48 while (!atomic_cmpset_int(&lock->s_lock, 0, 1)) in simplelock_lock()55 atomic_store_rel_int(&lock->s_lock, 0); in simplelock_unlock()
75 _thr_umutex_init(&lck->s_lock); in _pthread_spin_init()110 return (THR_UMUTEX_TRYLOCK(_get_curthread(), &lck->s_lock)); in _pthread_spin_trylock()128 while (THR_UMUTEX_TRYLOCK(curthread, &lck->s_lock) != 0) { in _pthread_spin_lock()129 while (lck->s_lock.m_owner) { in _pthread_spin_lock()154 return (THR_UMUTEX_UNLOCK(_get_curthread(), &lck->s_lock)); in _pthread_spin_unlock()
223 struct umutex s_lock; member
341 spinlock_t s_lock ____cacheline_aligned_in_smp;