Home
last modified time | relevance | path

Searched refs:atomic_test_and_set (Results 1 – 25 of 49) sorted by relevance

12

/haiku/src/system/libroot/os/locks/
H A Dinit_once.cpp34 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 Dmutex.cpp68 oldValue = atomic_test_and_set(&lock->lock, B_USER_MUTEX_LOCKED, 0); in __mutex_lock()
/haiku/src/system/libroot/posix/pthread/
H A Dpthread_once.cpp66 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 Dpthread_spinlock.cpp40 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 Dpthread_key.cpp92 if (atomic_test_and_set(&sKeyTable[key].sequence, nextSequence, in pthread_key_create()
H A Dpthread_cond.cpp78 atomic_test_and_set((int32*)&cond->lock, B_USER_MUTEX_LOCKED, 0); in cond_wait()
H A Dpthread_mutex.cpp77 const int32 oldValue = atomic_test_and_set((int32*)&mutex->lock, B_USER_MUTEX_LOCKED, 0); in __pthread_mutex_lock()
H A Dpthread_barrier.cpp51 const int32 oldValue = atomic_test_and_set((int32*)mutex, B_USER_MUTEX_LOCKED, 0); in barrier_lock()
/haiku/src/kits/shared/
H A DWeakReferenceable.cpp39 } 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 Datomic.S74 FUNCTION(atomic_test_and_set):
80 FUNCTION_END(atomic_test_and_set)
/haiku/headers/private/kernel/vm/
H A Dvm_types.h233 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 Dsmp.h20 return atomic_test_and_set(&fLock, -1, 0) == 0; in TryLock()
/haiku/src/system/kernel/arch/arm/
H A Darch_atomic32.cpp44 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 Datomic.h90 #define atomic_test_and_set atomic_test_and_set_inline macro
/haiku/src/libs/compat/freebsd_network/compat/machine/
H A Datomic.h31 (atomic_test_and_set((int32 *)(ptr), new, old) == (int32)old)
/haiku/headers/private/kernel/util/
H A Datomic.h23 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 Datomic.S41 FUNCTION(atomic_test_and_set):
48 FUNCTION_END(atomic_test_and_set)
/haiku/src/system/kernel/arch/arm/paging/32bit/
H A DARMPagingMethod32Bit.h132 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 Datomic.c29 atomic_test_and_set(int32 *value, int32 newValue, int32 testAgainst) in atomic_test_and_set() function
/haiku/src/tools/fs_shell/
H A Datomic.cpp30 return atomic_test_and_set((int32*)value, newValue, testAgainst); in fssh_atomic_test_and_set()
/haiku/src/build/libroot/
H A Datomic.cpp30 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 Dnvme_atomic.h105 return atomic_test_and_set(v, 1, 0); in nvme_atomic_test_and_set()
/haiku/headers/os/support/
H A DSupportDefs.h275 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 DX86PagingMethod32Bit.h129 return atomic_test_and_set((int32*)entry, newEntry, oldEntry); in TestAndSetPageTableEntry()
/haiku/src/system/kernel/arch/m68k/paging/040/
H A DM68KPagingMethod040.h141 return atomic_test_and_set((int32*)entry, newEntry, oldEntry); in TestAndSetPageTableEntry()

12