/haiku/src/add-ons/kernel/drivers/network/ether/etherpci/ |
H A D | etherpci.c | 1443 atomic_add(&data->inrw, 1); 1445 atomic_add(&data->inrw, -1); 1454 atomic_add(&data->inrw, -1); 1463 atomic_add(&data->inrw, -1); 1648 atomic_add(&data->inrw, 1); 1650 atomic_add(&data->inrw, -1); 1658 atomic_add(&data->inrw, -1); 1680 atomic_add(&data->inrw, -1);
|
/haiku/src/add-ons/kernel/drivers/network/ether/usb_davicom/ |
H A D | DavicomDevice.cpp | 210 while (atomic_add(&fInsideNotify, 0) != 0) 449 while (atomic_add(&fInsideNotify, 0) != 0) 854 atomic_add(&device->fInsideNotify, 1); 856 atomic_add(&device->fInsideNotify, -1); 868 atomic_add(&device->fInsideNotify, -1);
|
/haiku/src/add-ons/kernel/network/stack/ |
H A D | stack.cpp | 187 atomic_add(&ref_count, 1); 194 if (atomic_add(&ref_count, -1) > 1) 267 if (atomic_add(&ref_count, 1) > 0) { 269 atomic_add(&ref_count, -1); 308 if (atomic_add(&ref_count, -1) > 1)
|
H A D | net_buffer.cpp | 752 int32 current = atomic_add(&sAllocatedDataHeaderCount, 1) + 1; 757 atomic_add(&sEverAllocatedDataHeaderCount, 1); 767 int32 current = atomic_add(&sAllocatedNetBufferCount, 1) + 1; 772 atomic_add(&sEverAllocatedNetBufferCount, 1); 783 atomic_add(&sAllocatedDataHeaderCount, -1); 794 atomic_add(&sAllocatedNetBufferCount, -1); 826 int32 refCount = atomic_add(&header->ref_count, -1); 839 int32 refCount = atomic_add(&header->ref_count, 1);
|
/haiku/src/kits/media/ |
H A D | MediaNode.cpp | 154 if (atomic_add(&fRefCount,1) == 0) { 168 if (atomic_add(&fRefCount, -1) == 1) { 986 return atomic_add(&BMediaNode::_m_changeTag,1);
|
H A D | BufferGroup.cpp | 158 atomic_add(&fBufferCount, 1);
|
/haiku/src/system/kernel/scheduler/ |
H A D | scheduler_cpu.cpp | 435 atomic_add(&fThreadCount, 1); 445 atomic_add(&fThreadCount, 1); 460 atomic_add(&fThreadCount, -1);
|
H A D | scheduler_profiler.cpp | 63 atomic_add((int32*)&function->fCalled, 1);
|
/haiku/src/system/kernel/locks/ |
H A D | user_mutex.cpp | 272 atomic_add(&entry->ref_count, 1); 282 atomic_add(&entry->ref_count, 1); 307 if (atomic_add(&entry->ref_count, -1) != 1)
|
/haiku/src/add-ons/kernel/generic/mpu401/ |
H A D | mpu401.c | 213 atomic_add(&mpu_device->count, 1); 239 atomic_add(&mpu_device->count, -1);
|
/haiku/src/kits/game/ |
H A D | DirectWindow.cpp | 527 if (atomic_add(&casted->fDirectLock, 1) > 0) { 549 if (atomic_add(&casted->fDirectLock, -1) > 1)
|
/haiku/src/add-ons/kernel/drivers/audio/ac97/sis7018/ |
H A D | Device.cpp | 162 if (atomic_add(&fInterruptsNest, 1) == 0) { 198 if (atomic_add(&fInterruptsNest, -1) == 1) {
|
/haiku/src/servers/print/ |
H A D | PrintServerApp.cpp | 168 if (atomic_add(&fReferences, 1) == 0) 176 if (atomic_add(&fReferences, -1) == 1)
|
/haiku/src/system/kernel/messaging/ |
H A D | MessagingService.cpp | 106 if (atomic_add(&fHeader->lock_counter, 1) == 0) 116 if (atomic_add(&fHeader->lock_counter, -1) > 1)
|
/haiku/src/add-ons/kernel/bus_managers/ps2/ |
H A D | ps2_keyboard.cpp | 417 atomic_add(&sKeyboardOpenCount, 1); 432 if (atomic_add(&sKeyboardOpenCount, -1) == 1) {
|
/haiku/src/kits/tracker/ |
H A D | Utilities.h | 305 if (atomic_add(&fCount, -1) <= 0) 313 if (atomic_add(&fCount, 1) < 0)
|
/haiku/src/system/kernel/disk_device_manager/ |
H A D | KDiskSystem.cpp | 398 return atomic_add(&fNextID, 1);
|
/haiku/src/system/libroot/posix/ |
H A D | syslog.cpp | 66 if (atomic_add(&lock, 1) == 0) {
|
/haiku/src/system/kernel/fs/ |
H A D | EntryCache.cpp | 202 const int32 index = atomic_add(&fGenerations[fCurrentGeneration].next_index, 1);
|
/haiku/headers/cpp/std/ |
H A D | bastring.h | 69 #ifndef atomic_add 70 extern "C" __haiku_int32 atomic_add(__haiku_int32* value, 87 charT* grab () { if (selfish) return clone (); atomic_add((__haiku_int32*) &ref, 1); return data (); } 88 void release() { if (atomic_add((__haiku_int32*) &ref, -1) == 1) delete this; }
|
/haiku/src/system/kernel/posix/ |
H A D | xsi_semaphore.cpp | 763 atomic_add(&sXsiSemaphoreCount, numberOfSemaphores); 764 atomic_add(&sXsiSemaphoreSetCount, 1); 996 atomic_add(&sXsiSemaphoreCount, -semaphoreSet->NumberOfSemaphores()); 997 atomic_add(&sXsiSemaphoreSetCount, -1);
|
H A D | realtime_sem.cpp | 98 atomic_add(&fRefCount, 1); 103 if (atomic_add(&fRefCount, -1) == 1)
|
/haiku/src/system/kernel/arch/x86/paging/32bit/ |
H A D | X86VMTranslationMap32Bit.cpp | 471 atomic_add(&gMappedPagesCount, -1); 535 atomic_add(&gMappedPagesCount, -1);
|
/haiku/src/system/kernel/arch/x86/paging/64bit/ |
H A D | X86VMTranslationMap64Bit.cpp | 473 atomic_add(&gMappedPagesCount, -1); 538 atomic_add(&gMappedPagesCount, -1);
|
/haiku/src/add-ons/kernel/file_systems/packagefs/util/ |
H A D | TwoKeyAVLTree.h | 172 atomic_add(fObjectCacheRefs, 1); 176 atomic_add(fObjectCacheRefs, -1);
|