Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FencePool ¶
type FencePool struct {
// contains filtered or unexported fields
}
func (*FencePool) Destroy ¶
func (w *FencePool) Destroy()
Destroy cleans up all fences in the pool. It waits (1 sec) for all fences to be signaled and runs their callbacks.
func (*FencePool) Next ¶
Next returns a fence from the pool. Until the fence is added back to the pool, the caller has ownership of it. If there are no fences available, a new one is allocated.
type Semaphore ¶
type Semaphore struct {
// contains filtered or unexported fields
}
func NewSemaphoreArray ¶
Click to show internal directories.
Click to hide internal directories.