/haiku/src/system/libroot/os/locks/ |
H A D | init_once.cpp | 34 int32 value = atomic_test_and_set(control, STATE_INITIALIZING, in __init_once() 59 value = atomic_test_and_set(control, semaphore, STATE_INITIALIZING); in __init_once() 68 value = atomic_test_and_set(control, STATE_SPINNING, in __init_once()
|
H A D | mutex.cpp | 68 oldValue = atomic_test_and_set(&lock->lock, B_USER_MUTEX_LOCKED, 0); in __mutex_lock()
|
/haiku/src/system/libroot/posix/pthread/ |
H A D | pthread_once.cpp | 66 int32 value = atomic_test_and_set((int32*)&onceControl->state, in pthread_once() 94 value = atomic_test_and_set((int32*)&onceControl->state, in pthread_once() 104 value = atomic_test_and_set((int32*)&onceControl->state, in pthread_once()
|
H A D | pthread_spinlock.cpp | 40 while (atomic_test_and_set((int32*)&lock->lock, LOCKED, UNLOCKED) in pthread_spin_lock() 52 if (atomic_test_and_set((int32*)&lock->lock, LOCKED, UNLOCKED) == LOCKED) in pthread_spin_trylock()
|
H A D | pthread_key.cpp | 92 if (atomic_test_and_set(&sKeyTable[key].sequence, nextSequence, in pthread_key_create()
|
H A D | pthread_cond.cpp | 78 atomic_test_and_set((int32*)&cond->lock, B_USER_MUTEX_LOCKED, 0); in cond_wait()
|
H A D | pthread_mutex.cpp | 77 const int32 oldValue = atomic_test_and_set((int32*)&mutex->lock, B_USER_MUTEX_LOCKED, 0); in __pthread_mutex_lock()
|
H A D | pthread_barrier.cpp | 51 const int32 oldValue = atomic_test_and_set((int32*)mutex, B_USER_MUTEX_LOCKED, 0); in barrier_lock()
|
/haiku/src/kits/shared/ |
H A D | WeakReferenceable.cpp | 39 } while (atomic_test_and_set(&fUseCount, count + 1, count) != count); in Get() 87 atomic_test_and_set(&fPointer->fUseCount, 0, 1); in ~BWeakReferenceable()
|
/haiku/src/system/libroot/os/arch/m68k/ |
H A D | atomic.S | 74 FUNCTION(atomic_test_and_set): 80 FUNCTION_END(atomic_test_and_set)
|
/haiku/headers/private/kernel/vm/ |
H A D | vm_types.h | 233 thread_id previousThread = atomic_test_and_set(&page->accessing_thread, in vm_page_debug_access_start() 247 thread_id previousThread = atomic_test_and_set(&page->accessing_thread, -1, in vm_page_debug_access_end() 274 thread_id previousThread = atomic_test_and_set(&page->accessing_thread, in vm_page_debug_access_transfer()
|
/haiku/src/system/boot/platform/riscv/ |
H A D | smp.h | 20 return atomic_test_and_set(&fLock, -1, 0) == 0; in TryLock()
|
/haiku/src/system/kernel/arch/arm/ |
H A D | arch_atomic32.cpp | 44 atomic_test_and_set(int32 *value, int32 newValue, int32 testAgainst) in atomic_test_and_set() function 128 int32 oldValue = atomic_test_and_set((int32*)value, newValue, testAgainst); in _user_atomic_test_and_set()
|
/haiku/headers/private/kernel/arch/x86/32/ |
H A D | atomic.h | 90 #define atomic_test_and_set atomic_test_and_set_inline macro
|
/haiku/src/libs/compat/freebsd_network/compat/machine/ |
H A D | atomic.h | 31 (atomic_test_and_set((int32 *)(ptr), new, old) == (int32)old)
|
/haiku/headers/private/kernel/util/ |
H A D | atomic.h | 23 return (PointerType*)atomic_test_and_set((int32*)_pointer, (int32)set, in atomic_pointer_test_and_set()
|
/haiku/src/system/libroot/os/arch/x86/ |
H A D | atomic.S | 41 FUNCTION(atomic_test_and_set): 48 FUNCTION_END(atomic_test_and_set)
|
/haiku/src/system/kernel/arch/arm/paging/32bit/ |
H A D | ARMPagingMethod32Bit.h | 132 return atomic_test_and_set((int32*)entry, newEntry, oldEntry); in TestAndSetPageTableEntry() 156 page_table_entry oldEntry = atomic_test_and_set((int32*)entry, in SetAndClearPageTableEntryFlags()
|
/haiku/src/system/libroot/os/ |
H A D | atomic.c | 29 atomic_test_and_set(int32 *value, int32 newValue, int32 testAgainst) in atomic_test_and_set() function
|
/haiku/src/tools/fs_shell/ |
H A D | atomic.cpp | 30 return atomic_test_and_set((int32*)value, newValue, testAgainst); in fssh_atomic_test_and_set()
|
/haiku/src/build/libroot/ |
H A D | atomic.cpp | 30 atomic_test_and_set(int32 *value, int32 newValue, int32 testAgainst) in atomic_test_and_set() function
|
/haiku/src/add-ons/kernel/drivers/disk/nvme/compat/ |
H A D | nvme_atomic.h | 105 return atomic_test_and_set(v, 1, 0); in nvme_atomic_test_and_set()
|
/haiku/headers/os/support/ |
H A D | SupportDefs.h | 275 atomic_test_and_set(int32* value, int32 newValue, int32 testAgainst) in atomic_test_and_set() function 371 extern int32 atomic_test_and_set(int32 *value, int32 newValue, int32 testAgainst);
|
/haiku/src/system/kernel/arch/x86/paging/32bit/ |
H A D | X86PagingMethod32Bit.h | 129 return atomic_test_and_set((int32*)entry, newEntry, oldEntry); in TestAndSetPageTableEntry()
|
/haiku/src/system/kernel/arch/m68k/paging/040/ |
H A D | M68KPagingMethod040.h | 141 return atomic_test_and_set((int32*)entry, newEntry, oldEntry); in TestAndSetPageTableEntry()
|