Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Semaphore ¶
type Semaphore struct {
// contains filtered or unexported fields
}
Semaphore used to control access to a common resource by multiple goroutines.
func (*Semaphore) Len ¶ added in v0.5.5
Len returns the number of goroutines currently acquired the semaphore.
func (*Semaphore) Signal ¶
func (s *Semaphore) Signal()
Signal the semaphore. A random waiting goroutine will be waken up.
Click to show internal directories.
Click to hide internal directories.