Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for hasWaitingReaders (0.22 sec)

  1. src/sync/rwmutex.go

    // this private API to avoid having to change the type of ForkLock.
    // For more details see the syscall package.
    //
    //go:linkname syscall_hasWaitingReaders syscall.hasWaitingReaders
    func syscall_hasWaitingReaders(rw *RWMutex) bool {
    	r := rw.readerCount.Load()
    	return r < 0 && r+rwmutexMaxReaders > 0
    }
    
    // RLocker returns a [Locker] interface that implements
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top