/haiku/src/tests/kits/app/bclipboard/ |
H A D | CountTester.cpp | 49 uint32 oldCount = clip.SystemCount(); local 60 CHK(clip.LocalCount() == oldCount + 1); 75 uint32 oldCount = clipA.SystemCount(); local 88 CHK(clipA.LocalCount() == oldCount + 1); 89 CHK(clipB.LocalCount() == oldCount + 1); 105 uint32 oldCount = clipA.SystemCount(); local 128 CHK(clipA.LocalCount() == oldCount + 1); 129 CHK(clipB.LocalCount() == oldCount + 2); 145 uint32 oldCount = clipA.SystemCount(); local 165 CHK(clipA.LocalCount() == oldCount 182 uint32 oldCount = clipA.SystemCount(); local 226 uint32 oldCount = clipA.SystemCount(); local 254 uint32 oldCount = clipA.SystemCount(); local [all...] |
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/ |
H A D | settings_tools.cpp | 172 int32 oldCount = to->value_count; 175 to->values = (char**) malloc((oldCount + 1) * sizeof(char*)); 183 memcpy(to->values, old, oldCount * sizeof(char*)); 184 to->values[oldCount] = strdup(value); 196 int32 oldCount = to->parameter_count; 200 (driver_parameter*) malloc((oldCount + 1) * sizeof(driver_parameter)); 208 memcpy(to->parameters, old, oldCount * sizeof(driver_parameter)); 209 memcpy(to->parameters + oldCount, add, sizeof(driver_parameter));
|
/haiku/headers/private/kernel/ |
H A D | lock.h | 189 int32 oldCount = atomic_add(&lock->count, 1); 190 if (oldCount >= RW_LOCK_WRITER_COUNT_BASE) 204 int32 oldCount = atomic_add(&lock->count, 1); 205 if (oldCount >= RW_LOCK_WRITER_COUNT_BASE) 218 int32 oldCount = atomic_add(&lock->count, -1); 219 if (oldCount >= RW_LOCK_WRITER_COUNT_BASE)
|
/haiku/src/add-ons/kernel/file_systems/netfs/client/ |
H A D | ShareAttrDir.cpp | 206 int32 oldCount = fAttributes.Size(); 207 Attribute** oldAttributes = new(std::nothrow) Attribute*[oldCount]; 247 for (int32 i = 0; i < oldCount; i++) { 257 while (oldIndex < oldCount || newIndex < newCount) { 258 Attribute* oldAttr = (oldCount > 0 ? oldAttributes[oldIndex] : NULL); 288 for (int32 i = 0; i < oldCount; i++)
|
/haiku/src/tests/add-ons/kernel/kernelland_emu/ |
H A D | lock.cpp | 508 int32 oldCount = atomic_add(&lock->count, RW_LOCK_WRITER_COUNT_BASE); local 510 if (oldCount == 0) { 519 if (oldCount < RW_LOCK_WRITER_COUNT_BASE) 520 lock->active_readers = oldCount - lock->pending_readers; 558 int32 oldCount = atomic_add(&lock->count, -RW_LOCK_WRITER_COUNT_BASE); local 559 oldCount -= RW_LOCK_WRITER_COUNT_BASE; 561 if (oldCount != 0) { 563 if (oldCount >= RW_LOCK_WRITER_COUNT_BASE) { 575 lock->pending_readers = oldCount - readerCount 670 int32 oldCount local [all...] |
/haiku/src/system/kernel/locks/ |
H A D | lock.cpp | 502 int32 oldCount = atomic_add(&lock->count, 1); local 503 if (oldCount < RW_LOCK_WRITER_COUNT_BASE) { 561 int32 oldCount = atomic_add(&lock->count, 1); local 562 if (oldCount < RW_LOCK_WRITER_COUNT_BASE) { 674 int32 oldCount = atomic_add(&lock->count, -1); local 675 if (oldCount < RW_LOCK_WRITER_COUNT_BASE) 715 int32 oldCount = atomic_add(&lock->count, RW_LOCK_WRITER_COUNT_BASE); local 717 if (oldCount == 0) { 726 if (oldCount < RW_LOCK_WRITER_COUNT_BASE) 727 lock->active_readers = oldCount 766 int32 oldCount = atomic_add(&lock->count, -RW_LOCK_WRITER_COUNT_BASE); local [all...] |
/haiku/src/system/kernel/posix/ |
H A D | xsi_message_queue.cpp | 383 int32 oldCount = atomic_get(&sXsiMessageCount); local 384 if (oldCount >= MAX_XSI_MESSAGE) 388 if (atomic_test_and_set(&sXsiMessageCount, oldCount + 1, oldCount) 389 == oldCount)
|
/haiku/src/add-ons/media/media-add-ons/mixer/ |
H A D | MixerOutput.cpp | 86 int oldCount = fOutputChannelCount; local 104 if (oldInfo != 0 && oldCount != 0) { 106 for (int j = 0; j < oldCount; j++) {
|
/haiku/src/kits/app/ |
H A D | Looper.cpp | 937 int32 oldCount; local 974 oldCount = atomic_add(&looper->fAtomicCount, 1); 977 return _LockComplete(looper, oldCount, currentThread, sem, timeout); 982 BLooper::_LockComplete(BLooper* looper, int32 oldCount, thread_id thread, argument 988 if (oldCount > 0) {
|
/haiku/src/system/kernel/ |
H A D | condition_variable.cpp | 394 const int32 oldCount = atomic_get(&fEntriesCount); local 400 while (atomic_get(&fEntriesCount) == oldCount) {
|
H A D | team.cpp | 894 int32 oldCount = atomic_add(&fUserDefinedTimerCount, 1); local 895 if (oldCount >= MAX_USER_TIMERS_PER_TEAM) {
|
/haiku/src/tests/system/kernel/util/ |
H A D | VectorSetTest.cpp | 219 int32 oldCount = Count(); local 222 CHK(fMySet.Remove(value) == oldCount - newCount);
|
H A D | VectorTest.cpp | 266 int32 oldCount = Count(); local 275 CHK(fMyVector.Remove(value) == oldCount - newCount);
|
H A D | OrderedMapTest.h | 359 int32 oldCount = Count(); local 364 CHK(fMyMap.Remove(key) == oldCount - newCount);
|