Searched refs:atomic_test_and_set (Results 1 - 25 of 47) sorted by last modified time

12

/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/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/vm/
H A Dvm_page.cpp1472 if (atomic_test_and_set(&sUnreservedFreePages,
/haiku/src/system/kernel/
H A Dsmp.cpp563 return atomic_test_and_set(&lock->lock, 1u << 31, 0) == 0;
H A Dguarded_heap.cpp403 if (atomic_test_and_set(&heap.area_creation_counter,
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,
/haiku/src/system/kernel/posix/
H A Dxsi_message_queue.cpp388 if (atomic_test_and_set(&sXsiMessageCount, oldCount + 1, oldCount)
/haiku/headers/private/kernel/
H A Dthread.h354 if (atomic_test_and_set(&thread->wait.status, status, 1) != 1)
H A Dlock.h251 if (atomic_test_and_set(&lock->count, -1, 0) != 0)
/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/system/libroot/posix/
H A Dsemaphore.cpp35 int32 old = atomic_test_and_set(value, current + amount, current);
/haiku/src/system/libroot/os/locks/
H A Dmutex.cpp68 oldValue = atomic_test_and_set(&lock->lock, B_USER_MUTEX_LOCKED, 0);
/haiku/src/system/libroot/stubbed/
H A Dlibroot_stubs_legacy.c1393 void atomic_test_and_set() {} function
H A Dlibroot_stubs.c1463 void atomic_test_and_set() {} function
/haiku/src/system/libroot/posix/pthread/
H A Dpthread_rwlock.cpp126 const int32 oldValue = atomic_test_and_set((int32*)&mutex, B_USER_MUTEX_LOCKED, 0);
H A Dpthread_mutex.cpp76 const int32 oldValue = atomic_test_and_set((int32*)&mutex->lock, B_USER_MUTEX_LOCKED, 0);
H A Dpthread_cond.cpp77 atomic_test_and_set((int32*)&cond->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_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,
/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/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/fs_shell/
H A Dfssh_api_wrapper.h61 #define atomic_test_and_set fssh_atomic_test_and_set macro
/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/headers/private/kernel/util/
H A Datomic.h23 return (PointerType*)atomic_test_and_set((int32*)_pointer, (int32)set,

Completed in 228 milliseconds

12