Documentation ¶
Overview ¶
Package sync implements synchronization primitives similar to those provided by the standard Go implementation. These are not safe to access from within interrupts, or from another thread. The primitives also lack any fairness guarantees, similar to channels and the scheduler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cond ¶ added in v0.14.0
type Cond struct { L Locker // contains filtered or unexported fields }
type Map ¶ added in v0.13.0
type Map struct {
// contains filtered or unexported fields
}
func (*Map) LoadOrStore ¶ added in v0.13.0
type Pool ¶
type Pool struct {
New func() interface{}
}
Pool is a very simple implementation of sync.Pool. It does not actually implement a pool.
type RWMutex ¶
type RWMutex struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.