Lines Matching refs:Lock
270 void unsetLock(omp_lock_t *Lock) { in unsetLock() argument
271 (void)atomicExchange((uint32_t *)Lock, UNSET, __ATOMIC_SEQ_CST); in unsetLock()
274 int testLock(omp_lock_t *Lock) { in testLock() argument
275 return atomicAdd((uint32_t *)Lock, 0u, __ATOMIC_SEQ_CST); in testLock()
278 void initLock(omp_lock_t *Lock) { unsetLock(Lock); } in initLock() argument
280 void destroyLock(omp_lock_t *Lock) { unsetLock(Lock); } in destroyLock() argument
282 void setLock(omp_lock_t *Lock) { in setLock() argument
284 while (atomicCAS((uint32_t *)Lock, UNSET, SET, __ATOMIC_SEQ_CST) != UNSET) { in setLock()
415 void omp_init_lock(omp_lock_t *Lock) { impl::initLock(Lock); } in omp_init_lock() argument
417 void omp_destroy_lock(omp_lock_t *Lock) { impl::destroyLock(Lock); } in omp_destroy_lock() argument
419 void omp_set_lock(omp_lock_t *Lock) { impl::setLock(Lock); } in omp_set_lock() argument
421 void omp_unset_lock(omp_lock_t *Lock) { impl::unsetLock(Lock); } in omp_unset_lock() argument
423 int omp_test_lock(omp_lock_t *Lock) { return impl::testLock(Lock); } in omp_test_lock() argument