Lines Matching refs:tas

141     { ATOMIC_VAR_INIT(KMP_LOCK_FREE(tas)), 0 }                                 \
606 kmp_tas_lock_t tas; member
644 lck->tas.lk.depth_locked != -1) { \
647 if ((gtid >= 0) && (lck->tas.lk.poll - 1 == gtid)) { \
651 if (lck->tas.lk.poll != 0 || \
652 !__kmp_atomic_compare_store_acq(&lck->tas.lk.poll, 0, gtid + 1)) { \
661 lck->tas.lk.poll != 0 || \
662 !__kmp_atomic_compare_store_acq(&lck->tas.lk.poll, 0, gtid + 1)); \
692 lck->tas.lk.depth_locked != -1) { in __kmp_test_user_lock_with_checks()
696 return ((lck->tas.lk.poll == 0) && in __kmp_test_user_lock_with_checks()
697 __kmp_atomic_compare_store_acq(&lck->tas.lk.poll, 0, gtid + 1)); in __kmp_test_user_lock_with_checks()
753 lck->tas.lk.depth_locked == -1) { \
757 if (lck->tas.lk.poll - 1 == gtid) { \
758 lck->tas.lk.depth_locked += 1; \
761 if ((lck->tas.lk.poll != 0) || \
762 !__kmp_atomic_compare_store_acq(&lck->tas.lk.poll, 0, gtid + 1)) { \
771 (lck->tas.lk.poll != 0) || \
772 !__kmp_atomic_compare_store_acq(&lck->tas.lk.poll, 0, gtid + 1)); \
774 lck->tas.lk.depth_locked = 1; \
803 lck->tas.lk.depth_locked == -1) { in __kmp_test_nested_user_lock_with_checks()
808 if (lck->tas.lk.poll - 1 == in __kmp_test_nested_user_lock_with_checks()
810 return ++lck->tas.lk.depth_locked; /* same owner, depth increased */ in __kmp_test_nested_user_lock_with_checks()
812 retval = ((lck->tas.lk.poll == 0) && in __kmp_test_nested_user_lock_with_checks()
813 __kmp_atomic_compare_store_acq(&lck->tas.lk.poll, 0, gtid + 1)); in __kmp_test_nested_user_lock_with_checks()
816 lck->tas.lk.depth_locked = 1; in __kmp_test_nested_user_lock_with_checks()
1049 #define KMP_FOREACH_D_LOCK(m, a) m(tas, a) m(futex, a) m(hle, a) m(rtm_spin, a)
1055 #define KMP_FOREACH_D_LOCK(m, a) m(tas, a) m(hle, a) m(rtm_spin, a)
1064 #define KMP_FOREACH_D_LOCK(m, a) m(tas, a) m(futex, a)
1070 #define KMP_FOREACH_D_LOCK(m, a) m(tas, a)