Documentation ¶ Index ¶ type Cond type Mutex func (m *Mutex) Lock() func (m *Mutex) Unlock() type RWMutex func (me *RWMutex) RLock() func (me *RWMutex) RUnlock() type WaitGroup Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cond ¶ type Cond struct { sync.Cond } type Mutex ¶ type Mutex struct { // contains filtered or unexported fields } func (*Mutex) Lock ¶ func (m *Mutex) Lock() func (*Mutex) Unlock ¶ func (m *Mutex) Unlock() type RWMutex ¶ type RWMutex struct { Mutex } This RWMutex's RLock and RUnlock methods don't allow shared reading because there's no way to determine what goroutine has stopped holding the read lock when RUnlock is called. So for debugging purposes, it's just like Mutex. func (*RWMutex) RLock ¶ func (me *RWMutex) RLock() func (*RWMutex) RUnlock ¶ func (me *RWMutex) RUnlock() type WaitGroup ¶ type WaitGroup struct { sync.WaitGroup } Source Files ¶ View all Source files sync.go Click to show internal directories. Click to hide internal directories.