Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type BinarySem ¶
func NewBinarySem ¶
func NewBinarySem() BinarySem
type BinarySemphore ¶
type BinarySemphore chan struct{}
func (BinarySemphore) Destroy ¶
func (b BinarySemphore) Destroy()
func (BinarySemphore) Give ¶
func (b BinarySemphore) Give(force bool)
func (BinarySemphore) Take ¶
func (b BinarySemphore) Take() bool
type CounterSem ¶
func NewCounterSem ¶
func NewCounterSem(n int, init int) CounterSem
type CounterSemphore ¶
type CounterSemphore chan struct{}
func (CounterSemphore) Destroy ¶
func (c CounterSemphore) Destroy()
func (CounterSemphore) Give ¶
func (c CounterSemphore) Give(force bool)
func (CounterSemphore) Take ¶
func (c CounterSemphore) Take() bool
Click to show internal directories.
Click to hide internal directories.