Lines Matching defs:oldCount
502 int32 oldCount = atomic_add(&lock->count, 1);
503 if (oldCount < RW_LOCK_WRITER_COUNT_BASE) {
561 int32 oldCount = atomic_add(&lock->count, 1);
562 if (oldCount < RW_LOCK_WRITER_COUNT_BASE) {
674 int32 oldCount = atomic_add(&lock->count, -1);
675 if (oldCount < RW_LOCK_WRITER_COUNT_BASE)
715 int32 oldCount = atomic_add(&lock->count, RW_LOCK_WRITER_COUNT_BASE);
717 if (oldCount == 0) {
726 if (oldCount < RW_LOCK_WRITER_COUNT_BASE)
727 lock->active_readers = oldCount - lock->pending_readers;
766 int32 oldCount = atomic_add(&lock->count, -RW_LOCK_WRITER_COUNT_BASE);
767 oldCount -= RW_LOCK_WRITER_COUNT_BASE;
769 if (oldCount != 0) {
771 if (oldCount >= RW_LOCK_WRITER_COUNT_BASE) {
783 lock->pending_readers = oldCount - readerCount