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

References

projects/openmp/runtime/src/kmp_lock.cpp
  609   return std::atomic_load_explicit(&lck->lk.owner_id,
  615   return std::atomic_load_explicit(&lck->lk.depth_locked,
  628       &lck->lk.next_ticket, 1U, std::memory_order_relaxed);
  637   if (std::atomic_load_explicit(&lck->lk.now_serving,
  641   KMP_WAIT_PTR(&lck->lk.now_serving, my_ticket, __kmp_bakery_check, lck);
  655   if (!std::atomic_load_explicit(&lck->lk.initialized,
  659   if (lck->lk.self != lck) {
  671   std::atomic_store_explicit(&lck->lk.owner_id, gtid + 1,
  677   kmp_uint32 my_ticket = std::atomic_load_explicit(&lck->lk.next_ticket,
  680   if (std::atomic_load_explicit(&lck->lk.now_serving,
  684             &lck->lk.next_ticket, &my_ticket, next_ticket,
  696   if (!std::atomic_load_explicit(&lck->lk.initialized,
  700   if (lck->lk.self != lck) {
  710     std::atomic_store_explicit(&lck->lk.owner_id, gtid + 1,
  717   kmp_uint32 distance = std::atomic_load_explicit(&lck->lk.next_ticket,
  719                         std::atomic_load_explicit(&lck->lk.now_serving,
  723   std::atomic_fetch_add_explicit(&lck->lk.now_serving, 1U,
  735   if (!std::atomic_load_explicit(&lck->lk.initialized,
  739   if (lck->lk.self != lck) {
  752   std::atomic_store_explicit(&lck->lk.owner_id, 0, std::memory_order_relaxed);
  757   lck->lk.location = NULL;
  758   lck->lk.self = lck;
  759   std::atomic_store_explicit(&lck->lk.next_ticket, 0U,
  761   std::atomic_store_explicit(&lck->lk.now_serving, 0U,
  764       &lck->lk.owner_id, 0,
  767       &lck->lk.depth_locked, -1,
  769   std::atomic_store_explicit(&lck->lk.initialized, true,
  774   std::atomic_store_explicit(&lck->lk.initialized, false,
  776   lck->lk.self = NULL;
  777   lck->lk.location = NULL;
  778   std::atomic_store_explicit(&lck->lk.next_ticket, 0U,
  780   std::atomic_store_explicit(&lck->lk.now_serving, 0U,
  782   std::atomic_store_explicit(&lck->lk.owner_id, 0, std::memory_order_relaxed);
  783   std::atomic_store_explicit(&lck->lk.depth_locked, -1,
  790   if (!std::atomic_load_explicit(&lck->lk.initialized,
  794   if (lck->lk.self != lck) {
  812     std::atomic_fetch_add_explicit(&lck->lk.depth_locked, 1,
  818     std::atomic_store_explicit(&lck->lk.depth_locked, 1,
  820     std::atomic_store_explicit(&lck->lk.owner_id, gtid + 1,
  830   if (!std::atomic_load_explicit(&lck->lk.initialized,
  834   if (lck->lk.self != lck) {
  849     retval = std::atomic_fetch_add_explicit(&lck->lk.depth_locked, 1,
  855     std::atomic_store_explicit(&lck->lk.depth_locked, 1,
  857     std::atomic_store_explicit(&lck->lk.owner_id, gtid + 1,
  868   if (!std::atomic_load_explicit(&lck->lk.initialized,
  872   if (lck->lk.self != lck) {
  884   if ((std::atomic_fetch_add_explicit(&lck->lk.depth_locked, -1,
  887     std::atomic_store_explicit(&lck->lk.owner_id, 0, std::memory_order_relaxed);
  898   if (!std::atomic_load_explicit(&lck->lk.initialized,
  902   if (lck->lk.self != lck) {
  919   std::atomic_store_explicit(&lck->lk.depth_locked, 0,
  926   std::atomic_store_explicit(&lck->lk.depth_locked, 0,
  934   if (!std::atomic_load_explicit(&lck->lk.initialized,
  938   if (lck->lk.self != lck) {
  953   return lck->lk.location;
  958   lck->lk.location = loc;
  962   return lck->lk.flags;
  967   lck->lk.flags = flags;