Documentation
¶
Overview ¶
Package gate contains an alternative condition variable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gate ¶
type Gate struct {
// contains filtered or unexported fields
}
A Gate is a monitor (mutex + condition variable) with one bit of state.
The condition may be either set or unset. Lock operations may be unconditional, or wait for the condition to be set. Unlock operations record the new state of the condition.
func (*Gate) Lock ¶
Lock acquires the gate unconditionally. It reports whether the condition is set.
Click to show internal directories.
Click to hide internal directories.