Searched refs:atomic_test_and_set (Results 1 - 25 of 47) sorted by relevance

12

/haiku/src/system/libroot/os/locks/
H A Dinit_once.cpp34 int32 value = atomic_test_and_set(control, STATE_INITIALIZING,
59 value = atomic_test_and_set(control, semaphore, STATE_INITIALIZING);
68 value = atomic_test_and_set(control, STATE_SPINNING,
H A Dmutex.cpp68 oldValue = atomic_test_and_set(&lock->lock, B_USER_MUTEX_LOCKED, 0);
/haiku/src/system/libroot/posix/pthread/
H A Dpthread_spinlock.cpp40 while (atomic_test_and_set((int32*)&lock->lock, LOCKED, UNLOCKED)
52 if (atomic_test_and_set((int32*)&lock->lock, LOCKED, UNLOCKED) == LOCKED)
H A Dpthread_once.cpp66 int32 value = atomic_test_and_set((int32*)&onceControl->state,
94 value = atomic_test_and_set((int32*)&onceControl->state,
104 value = atomic_test_and_set((int32*)&onceControl->state,
H A Dpthread_key.cpp92 if (atomic_test_and_set(&sKeyTable[key].sequence, nextSequence,
H A Dpthread_cond.cpp77 atomic_test_and_set((int32*)&cond->lock, B_USER_MUTEX_LOCKED, 0);
/haiku/src/system/boot/platform/riscv/
H A Dsmp.h20 return atomic_test_and_set(&fLock, -1, 0) == 0;
/haiku/src/kits/shared/
H A DWeakReferenceable.cpp38 } while (atomic_test_and_set(&fUseCount, count + 1, count) != count);
83 atomic_test_and_set(&fPointer->fUseCount, 0, 1);
/haiku/headers/private/kernel/arch/x86/32/
H A Datomic.h90 #define atomic_test_and_set atomic_test_and_set_inline macro
/haiku/src/system/libroot/os/arch/m68k/
H A Datomic.S72 /* int atomic_test_and_set(int *value, int setTo, int testValue)
74 FUNCTION(atomic_test_and_set):
80 FUNCTION_END(atomic_test_and_set)
/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,
/haiku/src/system/kernel/arch/arm/
H A Darch_atomic32.cpp44 atomic_test_and_set(int32 *value, int32 newValue, int32 testAgainst) function
128 int32 oldValue = atomic_test_and_set((int32*)value, newValue, testAgainst);
/haiku/src/tools/fs_shell/
H A Datomic.cpp30 return atomic_test_and_set((int32*)value, newValue, testAgainst);
/haiku/src/build/libroot/
H A Datomic.cpp30 atomic_test_and_set(int32 *value, int32 newValue, int32 testAgainst) function
/haiku/src/system/libroot/os/
H A Datomic.c29 atomic_test_and_set(int32 *value, int32 newValue, int32 testAgainst) function
/haiku/headers/private/kernel/vm/
H A Dvm_types.h230 thread_id previousThread = atomic_test_and_set(&page->accessing_thread,
244 thread_id previousThread = atomic_test_and_set(&page->accessing_thread, -1,
271 thread_id previousThread = atomic_test_and_set(&page->accessing_thread,
/haiku/src/add-ons/kernel/drivers/disk/nvme/compat/
H A Dnvme_atomic.h105 return atomic_test_and_set(v, 1, 0);
/haiku/src/system/libroot/os/arch/x86/
H A Datomic.S39 /* int32 atomic_test_and_set(int32* value, int32 newValue,
41 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);
156 page_table_entry oldEntry = atomic_test_and_set((int32*)entry,
/haiku/src/system/kernel/arch/x86/paging/32bit/
H A DX86PagingMethod32Bit.h129 return atomic_test_and_set((int32*)entry, newEntry, oldEntry);
/haiku/src/system/libroot/os/arch/generic/
H A Dgeneric_atomic.cpp28 atomic_test_and_set(int32_t* ptr, int32_t desired, int32_t expected) function
/haiku/src/system/kernel/arch/m68k/paging/040/
H A DM68KPagingMethod040.h141 return atomic_test_and_set((int32*)entry, newEntry, oldEntry);
/haiku/src/system/kernel/arch/ppc/paging/460/
H A DPPCPagingMethod460.h159 return atomic_test_and_set((int32*)entry, newEntry, oldEntry);
/haiku/src/system/kernel/arch/ppc/paging/classic/
H A DPPCPagingMethodClassic.h159 return atomic_test_and_set((int32*)entry, newEntry, oldEntry);

Completed in 198 milliseconds

12