reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

projects/openmp/runtime/src/kmp_lock.cpp
 1987   lck->lk.adaptive.badness = 0;
 1993   kmp_uint32 newBadness = (lck->lk.adaptive.badness << 1) | 1;
 1994   if (newBadness > lck->lk.adaptive.max_badness) {
 1997     lck->lk.adaptive.badness = newBadness;
 2004   kmp_uint32 badness = lck->lk.adaptive.badness;
 2005   kmp_uint32 attempts = lck->lk.adaptive.acquire_attempts;
 2014   int retries = lck->lk.adaptive.max_soft_retries;
 2031       if (!__kmp_is_unlocked_queuing_lock(GET_QLK_PTR(lck))) {
 2068   lck->lk.adaptive.acquire_attempts++;
 2071   if (__kmp_test_queuing_lock(GET_QLK_PTR(lck), gtid)) {
 2082   if (lck->lk.qlk.initialized != GET_QLK_PTR(lck)) {
 2082   if (lck->lk.qlk.initialized != GET_QLK_PTR(lck)) {
 2089     lck->lk.qlk.owner_id = gtid + 1;
 2108     if (__kmp_is_unlocked_queuing_lock(GET_QLK_PTR(lck))) {
 2118       while (!__kmp_is_unlocked_queuing_lock(GET_QLK_PTR(lck))) {
 2130   lck->lk.adaptive.acquire_attempts++;
 2132   __kmp_acquire_queuing_lock_timed_template<FALSE>(GET_QLK_PTR(lck), gtid);
 2141   if (lck->lk.qlk.initialized != GET_QLK_PTR(lck)) {
 2141   if (lck->lk.qlk.initialized != GET_QLK_PTR(lck)) {
 2144   if (__kmp_get_queuing_lock_owner(GET_QLK_PTR(lck)) == gtid) {
 2150   lck->lk.qlk.owner_id = gtid + 1;
 2155   if (__kmp_is_unlocked_queuing_lock(GET_QLK_PTR(
 2163     __kmp_release_queuing_lock(GET_QLK_PTR(lck), gtid);
 2172   if (lck->lk.qlk.initialized != GET_QLK_PTR(lck)) {
 2172   if (lck->lk.qlk.initialized != GET_QLK_PTR(lck)) {
 2175   if (__kmp_get_queuing_lock_owner(GET_QLK_PTR(lck)) == -1) {
 2178   if (__kmp_get_queuing_lock_owner(GET_QLK_PTR(lck)) != gtid) {
 2181   lck->lk.qlk.owner_id = 0;
 2187   __kmp_init_queuing_lock(GET_QLK_PTR(lck));
 2188   lck->lk.adaptive.badness = 0;
 2189   lck->lk.adaptive.acquire_attempts = 0; // nonSpeculativeAcquireAttempts = 0;
 2190   lck->lk.adaptive.max_soft_retries =
 2192   lck->lk.adaptive.max_badness = __kmp_adaptive_backoff_params.max_badness;
 2203   __kmp_destroy_queuing_lock(GET_QLK_PTR(lck));
 2209   if (lck->lk.qlk.initialized != GET_QLK_PTR(lck)) {
 2209   if (lck->lk.qlk.initialized != GET_QLK_PTR(lck)) {
 2212   if (__kmp_get_queuing_lock_owner(GET_QLK_PTR(lck)) != -1) {