Home
last modified time | relevance | path

Searched refs:poll_val (Results 1 – 2 of 2) sorted by relevance

/external/llvm-project/openmp/runtime/src/
Dkmp_lock.cpp334 kmp_int32 poll_val; in __kmp_acquire_futex_lock_timed_template() local
336 while ((poll_val = KMP_COMPARE_AND_STORE_RET32( in __kmp_acquire_futex_lock_timed_template()
340 kmp_int32 cond = KMP_LOCK_STRIP(poll_val) & 1; in __kmp_acquire_futex_lock_timed_template()
344 lck, gtid, poll_val, cond)); in __kmp_acquire_futex_lock_timed_template()
355 if (!KMP_COMPARE_AND_STORE_REL32(&(lck->lk.poll), poll_val, in __kmp_acquire_futex_lock_timed_template()
356 poll_val | KMP_LOCK_BUSY(1, futex))) { in __kmp_acquire_futex_lock_timed_template()
363 poll_val |= KMP_LOCK_BUSY(1, futex); in __kmp_acquire_futex_lock_timed_template()
373 lck, gtid, poll_val)); in __kmp_acquire_futex_lock_timed_template()
376 if ((rc = syscall(__NR_futex, &(lck->lk.poll), FUTEX_WAIT, poll_val, NULL, in __kmp_acquire_futex_lock_timed_template()
380 lck, gtid, poll_val, rc, errno)); in __kmp_acquire_futex_lock_timed_template()
[all …]
Dkmp_csupport.cpp1024 kmp_int32 poll_val; \
1025 while ((poll_val = KMP_COMPARE_AND_STORE_RET32( \
1028 kmp_int32 cond = KMP_LOCK_STRIP(poll_val) & 1; \
1030 if (!KMP_COMPARE_AND_STORE_RET32(&(ftx->lk.poll), poll_val, \
1031 poll_val | \
1035 poll_val |= KMP_LOCK_BUSY(1, futex); \
1038 if ((rc = syscall(__NR_futex, &(ftx->lk.poll), FUTEX_WAIT, poll_val, \
1066 kmp_int32 poll_val = \
1068 if (KMP_LOCK_STRIP(poll_val) & 1) { \