Lines Matching refs:thread
84 thread_id thread = find_thread(NULL);
85 if (thread == fWriter) {
91 int32 index = _IndexOf(thread);
95 // The outer read lock bracket for the thread has been
111 // Returns whether or not the calling thread owns a read lock or even a
118 thread_id thread = find_thread(NULL);
119 result = (thread == fWriter || _IndexOf(thread) >= 0);
149 thread_id thread = find_thread(NULL);
150 if (thread == fWriter) {
153 // The outer write lock bracket for the thread has been
158 _NewReadLockInfo(thread, fWriterReaderCount);
178 // Returns whether or not the calling thread owns a write lock.
208 thread_id thread = find_thread(NULL);
213 if (thread == fWriter) {
217 } else if (ReadLockInfo* info = _ReadLockInfoAt(_IndexOf(thread))) {
234 _NewReadLockInfo(thread);
237 _NewReadLockInfo(thread);
249 _DeleteReadLockInfo(_IndexOf(thread));
283 thread_id thread = find_thread(NULL);
284 int32 index = _IndexOf(thread);
309 fWriter = thread;
336 if (fWriter == thread) {
377 fWriter = thread;
414 // Create a new read lock info for the supplied thread and add it to the
417 RWLocker::_NewReadLockInfo(thread_id thread, int32 count)
420 info->reader = thread;
442 RWLocker::_IndexOf(thread_id thread) const
446 if (_ReadLockInfoAt(i)->reader == thread)