Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RWCMutex ¶
type RWCMutex struct {
// contains filtered or unexported fields
}
func (*RWCMutex) RLock ¶
func (l *RWCMutex) RLock()
RLock allows read workloads to wait for writers to complete.
type RWCMutexer ¶
type RWCMutexer interface { RLock() RUnlock() Lock() Unlock() }
RWCMutexer is mostly just a copy & paste from sync.RWMutex but with channels. It outperforms sync.RWMutex on workloads with many short-read locks scenarios versus small wlock. See benchmarks for context
Click to show internal directories.
Click to hide internal directories.