Searched refs:next_ticket (Results 1 – 5 of 5) sorted by relevance
/external/rust/crates/spin/src/mutex/ |
D | ticket.rs | 63 pub(crate) next_ticket: AtomicUsize, field 99 next_ticket: AtomicUsize::new(0), in new() 139 let ticket = self.next_ticket.load(Ordering::Relaxed); in is_locked() 159 let ticket = self.next_ticket.fetch_add(1, Ordering::Relaxed); in lock() 207 .next_ticket in try_lock()
|
/external/tensorflow/tensorflow/python/data/kernel_tests/ |
D | from_generator_test.py | 160 next_ticket = [0] # GUARDED_BY(lock) 173 ticket = next_ticket[0] 174 next_ticket[0] += 1 180 while next_ticket[0] < num_parallel_iterators:
|
/external/llvm-project/openmp/runtime/src/ |
D | kmp_lock.cpp | 628 &lck->lk.next_ticket, 1U, std::memory_order_relaxed); in __kmp_acquire_ticket_lock_timed_template() 677 kmp_uint32 my_ticket = std::atomic_load_explicit(&lck->lk.next_ticket, in __kmp_test_ticket_lock() 682 kmp_uint32 next_ticket = my_ticket + 1; in __kmp_test_ticket_lock() local 684 &lck->lk.next_ticket, &my_ticket, next_ticket, in __kmp_test_ticket_lock() 717 kmp_uint32 distance = std::atomic_load_explicit(&lck->lk.next_ticket, in __kmp_release_ticket_lock() 759 std::atomic_store_explicit(&lck->lk.next_ticket, 0U, in __kmp_init_ticket_lock() 778 std::atomic_store_explicit(&lck->lk.next_ticket, 0U, in __kmp_destroy_ticket_lock() 1529 lck->lk.next_ticket = 0; in __kmp_init_queuing_lock() 1543 lck->lk.next_ticket = 0; in __kmp_destroy_queuing_lock() 2237 kmp_uint64 ticket = KMP_ATOMIC_INC(&lck->lk.next_ticket); in __kmp_acquire_drdpa_lock_timed_template() [all …]
|
D | kmp_lock.h | 234 next_ticket; // ticket number to give to next thread which acquires member 247 next_ticket; // ticket number to give to next thread which acquires member 371 next_ticket; // ticket number to give to next thread which acquires member 458 std::atomic<kmp_uint64> next_ticket; member
|
D | kmp_debugger.cpp | 157 offset_and_size_of(kmp_base_queuing_lock_t, next_ticket),
|