Lines Matching refs:oldCount
508 int32 oldCount = atomic_add(&lock->count, RW_LOCK_WRITER_COUNT_BASE);
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);
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 = atomic_add(&from->count, -1);
671 if (oldCount >= RW_LOCK_WRITER_COUNT_BASE)