- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for hasWaitingReaders (0.21 sec)
-
src/syscall/forkpipe2.go
// number of goroutines holding a conceptual write lock // on ForkLock. forking int ) // hasWaitingReaders reports whether any goroutine is waiting // to acquire a read lock on rw. It is defined in the sync package. func hasWaitingReaders(rw *sync.RWMutex) bool // acquireForkLock acquires a write lock on ForkLock. // ForkLock is exported and we've promised that during a fork
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 10 19:19:59 UTC 2023 - 2.6K bytes - Viewed (0) -
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)