Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gorc ¶
type Gorc interface { // IncBy increases the counter by b. IncBy(b int) // Inc increases the counter by one. Inc() // DecBy decreases the counter by b. DecBy(b int) // Dec decreases the counter by one. Dec() // GetCount returns an integer holding the count. GetCount() int // WaitLow will return as soon as the Gorc counter falls below w. // e.g. wait until all but w goroutines are stopped. WaitLow(w int) // WaitHigh will return as soon as the Gorc counter goes above w. // e.g. wait until at least w-1 goroutines are started. WaitHigh(w int) }
Gorc is used to keep track of goroutines running.
Click to show internal directories.
Click to hide internal directories.