Documentation ¶ Overview ¶ Package tmu implements "timed mutexes" which will panic if they're held or blocked for more than a predeterminate amount of time. This can be convenient to debug locking issues. Index ¶ func Lock(mu *sync.Mutex) func Unlock(mu *sync.Mutex) type Mutex func (mu *Mutex) Lock() func (mu *Mutex) Unlock() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Lock ¶ func Lock(mu *sync.Mutex) func Unlock ¶ func Unlock(mu *sync.Mutex) Types ¶ type Mutex ¶ type Mutex sync.Mutex func (*Mutex) Lock ¶ func (mu *Mutex) Lock() func (*Mutex) Unlock ¶ func (mu *Mutex) Unlock() Source Files ¶ View all Source files tmu.go Click to show internal directories. Click to hide internal directories.