Home
last modified time | relevance | path

Searched refs:owner_count (Results 1 – 9 of 9) sorted by relevance

/haiku/src/system/libroot/os/locks/
H A Drw_lock.cpp96 lock->owner_count = 0; in __rw_lock_init_etc()
127 lock->owner_count++; in __rw_lock_read_lock()
141 if (--lock->owner_count > 0) in __rw_lock_read_unlock()
171 lock->owner_count = 1; in __rw_lock_write_lock()
176 lock->owner_count++; in __rw_lock_write_lock()
191 lock->owner_count = 1; in __rw_lock_write_lock()
206 if (--lock->owner_count > 0) in __rw_lock_write_unlock()
/haiku/src/system/libroot/posix/pthread/
H A Dpthread_mutex.cpp39 mutex->owner_count = 0; in pthread_mutex_init()
61 if (mutex->owner_count == INT32_MAX) in __pthread_mutex_lock()
64 mutex->owner_count++; in __pthread_mutex_lock()
98 mutex->owner_count = 1; in __pthread_mutex_lock()
162 && --mutex->owner_count > 0) { in pthread_mutex_unlock()
H A Dpthread_cond.cpp82 mutex->owner_count = 0; in cond_wait()
/haiku/src/tests/add-ons/kernel/kernelland_emu/
H A Dlock.cpp295 lock->owner_count = 0; in rw_lock_init()
309 lock->owner_count = 0; in rw_lock_init_etc()
363 lock->owner_count++; in _rw_lock_read_lock()
393 lock->owner_count++; in _rw_lock_read_lock_with_timeout()
489 lock->owner_count--; in _rw_lock_read_unlock_threads_locked()
517 lock->owner_count += RW_LOCK_WRITER_COUNT_BASE; in rw_lock_write_lock()
527 lock->owner_count = RW_LOCK_WRITER_COUNT_BASE; in rw_lock_write_lock()
539 lock->owner_count = RW_LOCK_WRITER_COUNT_BASE; in rw_lock_write_lock()
563 lock->owner_count -= RW_LOCK_WRITER_COUNT_BASE; in _rw_lock_write_unlock_threads_locked()
564 if (lock->owner_count >= RW_LOCK_WRITER_COUNT_BASE) in _rw_lock_write_unlock_threads_locked()
[all …]
/haiku/src/system/kernel/locks/
H A Dlock.cpp386 lock->owner_count = 0; in rw_lock_init()
404 lock->owner_count = 0; in rw_lock_init_etc()
525 lock->owner_count++; in _rw_lock_read_lock()
586 lock->owner_count++; in _rw_lock_read_lock_with_timeout()
687 ASSERT((lock->owner_count % RW_LOCK_WRITER_COUNT_BASE) > 0); in _rw_lock_read_unlock()
688 lock->owner_count--; in _rw_lock_read_unlock()
725 lock->owner_count += RW_LOCK_WRITER_COUNT_BASE; in rw_lock_write_lock()
737 lock->owner_count = RW_LOCK_WRITER_COUNT_BASE; in rw_lock_write_lock()
749 lock->owner_count = RW_LOCK_WRITER_COUNT_BASE; in rw_lock_write_lock()
767 ASSERT(lock->owner_count >= RW_LOCK_WRITER_COUNT_BASE); in _rw_lock_write_unlock()
[all …]
/haiku/headers/posix/sys/
H A Dtypes.h80 __haiku_std_int32 owner_count; member
/haiku/headers/private/shared/
H A Dlocks.h44 int32 owner_count; member
/haiku/headers/private/kernel/
H A Dlock.h55 int32 owner_count; member
/haiku/src/add-ons/kernel/file_systems/ramfs/
H A DVolume.cpp740 if (ok && fLocker.owner_count > 1) in ReadLock()
757 if (ok && fLocker.owner_count > 1) in WriteLock()