Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RingMutex ¶
type RingMutex struct {
// contains filtered or unexported fields
}
func NewRingMutex ¶
Create a RW mutex that provides a pseudo-independent set of mutexes for addresses where the address space is mapped into possibly much smaller set of backing mutexes using the xxhash (non-cryptographic) hash function // modulo size. If some addresses collide modulo size they will be unnecessary contention between those addresses, but you can trade space against contention as desired.
func NewRingMutexNoHash ¶
func NewRingMutexXXHash ¶
func (*RingMutex) MutexCount ¶
Return the size of the underlying array of mutexes
Click to show internal directories.
Click to hide internal directories.