Home
last modified time | relevance | path

Searched refs:s_lock (Results 1 – 5 of 5) sorted by relevance

/freebsd-12.1/tools/KSE/ksetest/
H A Dsimplelock.h36 int s_lock; member
42 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()
/freebsd-12.1/tools/KSE/rr/
H A Dsimplelock.h36 int s_lock; member
42 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()
/freebsd-12.1/lib/libthr/thread/
H A Dthr_pspinlock.c75 _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()
H A Dthr_private.h223 struct umutex s_lock; member
/freebsd-12.1/sys/ofed/include/rdma/
H A Drdmavt_qp.h341 spinlock_t s_lock ____cacheline_aligned_in_smp;