Documentation ¶
Overview ¶
Package xmutex provides the implementation of a mutex that implements an efficient TryLock function in addition to Lock and Unlock.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupMap ¶
Types ¶
type Mutex ¶
type Mutex struct {
// contains filtered or unexported fields
}
Mutex is a mutual exclusion primitive that implements TryLock in addition to Lock and Unlock.
func (*Mutex) Lock ¶
func (m *Mutex) Lock()
Lock acquires the mutex. If it is currently held by another goroutine, Lock will wait until it has a chance to acquire it.
Click to show internal directories.
Click to hide internal directories.