Home | History | Annotate | Download | only in sync

Lines Matching defs:Cond

12 // Cond implements a condition variable, a rendezvous point
16 // Each Cond has an associated Locker L (often a *Mutex or *RWMutex),
20 // A Cond can be created as part of other structures.
21 // A Cond must not be copied after first use.
22 type Cond struct {
32 // NewCond returns a new Cond with Locker l.
33 func NewCond(l Locker) *Cond {
34 return &Cond{L: l}
53 func (c *Cond) Wait() {
65 func (c *Cond) Signal() {
74 func (c *Cond) Broadcast() {
86 panic("sync.Cond is copied")