Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mutex ¶
type Mutex struct {
// contains filtered or unexported fields
}
Mutex is a "try lock" for coordinating multiple accessors, while allowing only a single updater. It is not very smart about queueing when there are multiple callers of Lock waiting.
func (*Mutex) Lock ¶
func (tl *Mutex) Lock()
Lock acquires the lock. If it is already held, this blocks until it can be obtained.
Click to show internal directories.
Click to hide internal directories.