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

12

/haiku/src/system/libroot/posix/pthread/
H A Dpthread_mutex.cpp76 const int32 oldValue = atomic_test_and_set((int32*)&mutex->lock, B_USER_MUTEX_LOCKED, 0);
H A Dpthread_barrier.cpp51 const int32 oldValue = atomic_test_and_set((int32*)mutex, B_USER_MUTEX_LOCKED, 0);
H A Dpthread_rwlock.cpp126 const int32 oldValue = atomic_test_and_set((int32*)&mutex, B_USER_MUTEX_LOCKED, 0);
/haiku/headers/os/support/
H A DSupportDefs.h275 atomic_test_and_set(int32* value, int32 newValue, int32 testAgainst) function
371 extern int32 atomic_test_and_set(int32 *value, int32 newValue, int32 testAgainst);
/haiku/src/system/kernel/arch/x86/
H A Darch_debug_console.cpp428 while (atomic_test_and_set(&sEarlyBootMessageLock, 1, 0) != 0)
/haiku/headers/private/kernel/
H A Dsmp.h213 return atomic_test_and_set(&lock->lock, 1u << 31, 0) == 0;
H A Dlock.h251 if (atomic_test_and_set(&lock->count, -1, 0) != 0)
H A Dthread.h354 if (atomic_test_and_set(&thread->wait.status, status, 1) != 1)
/haiku/src/system/libroot/posix/
H A Dsemaphore.cpp35 int32 old = atomic_test_and_set(value, current + amount, current);
/haiku/src/system/kernel/locks/
H A Duser_mutex.cpp139 result = atomic_test_and_set(value, newValue, testAgainst);
145 result = atomic_test_and_set(value, newValue, testAgainst);
/haiku/src/add-ons/kernel/bus_managers/acpi/
H A DACPICAHaiku.cpp1240 } while (atomic_test_and_set((int32*)lock, newValue, oldValue) != (int32)oldValue);
1262 } while (atomic_test_and_set((int32*)lock, newValue, oldValue) != (int32)oldValue);
H A DEmbeddedController.cpp587 } while (atomic_test_and_set(&sc->ec_sci_pending, 0, pending));
/haiku/src/system/kernel/posix/
H A Dxsi_message_queue.cpp388 if (atomic_test_and_set(&sXsiMessageCount, oldCount + 1, oldCount)
/haiku/src/add-ons/kernel/busses/i2c/pch/
H A Dpch_i2c.cpp111 if (atomic_test_and_set(&bus->busy, 1, 0) != 0)
/haiku/src/add-ons/kernel/network/stack/
H A Dnet_buffer.cpp755 atomic_test_and_set(&sMaxAllocatedDataHeaderCount, current, max);
770 atomic_test_and_set(&sMaxAllocatedNetBufferCount, current, max);
/haiku/src/system/kernel/
H A Dport.cpp74 // atomic_test_and_set(). A port is only seen as existent when its state is
819 const int32 oldState = atomic_test_and_set(&port->state,
1044 const int32 oldState = atomic_test_and_set(&port->state,
H A Dguarded_heap.cpp403 if (atomic_test_and_set(&heap.area_creation_counter,
H A Dsmp.cpp563 return atomic_test_and_set(&lock->lock, 1u << 31, 0) == 0;
/haiku/headers/private/fs_shell/
H A Dfssh_api_wrapper.h61 #define atomic_test_and_set fssh_atomic_test_and_set macro
/haiku/src/system/libroot/stubbed/
H A Dlibroot_stubs.c1463 void atomic_test_and_set() {} function
H A Dlibroot_stubs_legacy.c1393 void atomic_test_and_set() {} function
/haiku/src/system/kernel/vm/
H A Dvm_page.cpp1472 if (atomic_test_and_set(&sUnreservedFreePages,

Completed in 265 milliseconds

12