Searched refs:readers (Results 1 - 3 of 3) sorted by relevance

/haiku/src/kits/shared/
H A DRWLockManager.cpp237 // wake up one or more readers -- we unblock more than one reader at
242 thread_id readers[kMaxReaderUnblockCount]; local
252 readers[readerCount++] = waiter->thread;
257 _kern_unblock_threads(readers, readerCount, B_OK);
/haiku/src/tests/servers/app/newerClipping/
H A DMultiLocker.cpp138 //increment and retrieve the current count of readers
191 //this will cause new readers to block on fReadSem
192 int32 readers = atomic_add(&fReadCount, -LARGE_NUMBER); local
194 if (readers > 0) {
195 //readers hold the lock - acquire fWriteSem
196 locked = (acquire_sem_etc(fWriteSem, readers, B_DO_NOT_RESCHEDULE,
273 //this will let new readers acquire the read lock
278 //readers are waiting to acquire the lock
395 /* these two functions manage the debug array for readers */
/haiku/src/system/libroot/posix/pthread/
H A Dpthread_rwlock.cpp246 // wake up one or more readers -- we unblock more than one reader at
250 thread_id readers[kMaxReaderUnblockCount]; local
261 readers[readerCount++] = waiter->thread;
267 _kern_unblock_threads(readers, readerCount, B_OK);

Completed in 42 milliseconds