/haiku/src/add-ons/kernel/busses/i2c/pch/ |
H A D | pch_i2c.cpp | 111 if (atomic_test_and_set(&bus->busy, 1, 0) != 0)
|
/haiku/src/add-ons/kernel/bus_managers/acpi/ |
H A D | ACPICAHaiku.cpp | 1240 } 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 D | EmbeddedController.cpp | 587 } while (atomic_test_and_set(&sc->ec_sci_pending, 0, pending));
|
/haiku/src/system/kernel/vm/ |
H A D | vm_page.cpp | 1472 if (atomic_test_and_set(&sUnreservedFreePages,
|
/haiku/src/system/kernel/ |
H A D | smp.cpp | 563 return atomic_test_and_set(&lock->lock, 1u << 31, 0) == 0;
|
H A D | guarded_heap.cpp | 403 if (atomic_test_and_set(&heap.area_creation_counter,
|
H A D | port.cpp | 74 // 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 D | xsi_message_queue.cpp | 388 if (atomic_test_and_set(&sXsiMessageCount, oldCount + 1, oldCount)
|
/haiku/headers/private/kernel/ |
H A D | thread.h | 354 if (atomic_test_and_set(&thread->wait.status, status, 1) != 1)
|
H A D | lock.h | 251 if (atomic_test_and_set(&lock->count, -1, 0) != 0)
|
/haiku/src/system/kernel/locks/ |
H A D | user_mutex.cpp | 139 result = atomic_test_and_set(value, newValue, testAgainst); 145 result = atomic_test_and_set(value, newValue, testAgainst);
|
/haiku/src/system/libroot/posix/ |
H A D | semaphore.cpp | 35 int32 old = atomic_test_and_set(value, current + amount, current);
|
/haiku/src/system/libroot/os/locks/ |
H A D | mutex.cpp | 68 oldValue = atomic_test_and_set(&lock->lock, B_USER_MUTEX_LOCKED, 0);
|
/haiku/src/system/libroot/stubbed/ |
H A D | libroot_stubs_legacy.c | 1393 void atomic_test_and_set() {} function
|
H A D | libroot_stubs.c | 1463 void atomic_test_and_set() {} function
|
/haiku/src/system/libroot/posix/pthread/ |
H A D | pthread_rwlock.cpp | 126 const int32 oldValue = atomic_test_and_set((int32*)&mutex, B_USER_MUTEX_LOCKED, 0);
|
H A D | pthread_mutex.cpp | 76 const int32 oldValue = atomic_test_and_set((int32*)&mutex->lock, B_USER_MUTEX_LOCKED, 0);
|
H A D | pthread_cond.cpp | 77 atomic_test_and_set((int32*)&cond->lock, B_USER_MUTEX_LOCKED, 0);
|
H A D | pthread_barrier.cpp | 51 const int32 oldValue = atomic_test_and_set((int32*)mutex, B_USER_MUTEX_LOCKED, 0);
|
H A D | pthread_once.cpp | 66 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 D | ARMPagingMethod32Bit.h | 132 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 D | WeakReferenceable.cpp | 38 } 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 D | fssh_api_wrapper.h | 61 #define atomic_test_and_set fssh_atomic_test_and_set macro
|
/haiku/src/add-ons/kernel/network/stack/ |
H A D | net_buffer.cpp | 755 atomic_test_and_set(&sMaxAllocatedDataHeaderCount, current, max); 770 atomic_test_and_set(&sMaxAllocatedNetBufferCount, current, max);
|
/haiku/headers/private/kernel/util/ |
H A D | atomic.h | 23 return (PointerType*)atomic_test_and_set((int32*)_pointer, (int32)set,
|