Lines Matching defs:RWMutex
37 type RWMutex struct { struct
38 w Mutex // held if there are pending writers
39 writerSem uint32 // semaphore for writers to wait for completing readers
40 readerSem uint32 // semaphore for readers to wait for completing writers
41 readerCount atomic.Int32 // number of pending readers
42 readerWait atomic.Int32 // number of departing readers
65 func (rw *RWMutex) RLock() {
85 func (rw *RWMutex) TryRLock() bool {
112 func (rw *RWMutex) RUnlock() {
127 func (rw *RWMutex) rUnlockSlow(r int32) {
142 func (rw *RWMutex) Lock() {
167 func (rw *RWMutex) TryLock() bool {
199 func (rw *RWMutex) Unlock() {
231 func syscall_hasWaitingReaders(rw *RWMutex) bool {
238 func (rw *RWMutex) RLocker() Locker {