Lines Matching refs:lock
40 * Possible states of a read/write lock:
43 * - one or more readers sharing the lock at the same time (read-locked)
44 * - one writer holding the lock (write-lock)
47 * - trying to get the write-lock while there are any readers blocks
48 * - trying to get the read-lock while there is a writer blocks
49 * - a single thread can acquire the lock multiple times in read mode
52 * to acquire the lock
53 * - in write mode while already holding the lock (whether in read or write mode)
54 * - in read mode while already holding the lock in write mode.
139 // 31 owned_by_writer_flag set to 1 if the lock is owned by a writer now.
140 // 30-2 reader_count the count of readers holding the lock.
266 // the lock when there are writers waiting for the lock.
310 rwlock->pending_lock.lock();
329 rwlock->pending_lock.lock();
381 rwlock->pending_lock.lock();
396 rwlock->pending_lock.lock();
489 rwlock->pending_lock.lock();