Documentation ¶
Index ¶
- type Cond
- func (c *Cond) Broadcast()
- func (c *Cond) BroadcastDo(do func() error)
- func (c *Cond) Signal()
- func (c *Cond) SignalDo(do func() error)
- func (c *Cond) WaitForDo(timeout time.Duration, pred func() bool, do func() error) error
- func (c *Cond) WaitUntil(pred func() bool)
- func (c *Cond) WaitUntilDo(pred func() bool, do func() error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cond ¶
Cond 条件变量不保证顺序性,即signal只是通知wait去获取数据,wait拿到的数据是不是 signal当时给的数据,不能保证
func (*Cond) BroadcastDo ¶
func (*Cond) WaitUntilDo ¶
Click to show internal directories.
Click to hide internal directories.