Documentation
¶
Index ¶
- func GetGlobalLockTimeout() time.Duration
- func ResetGlobalTimers()
- func SetGlobalLockTimeout(duration time.Duration, handler func(dur time.Duration, file string, line int))
- type RWMutex
- func (m *RWMutex) GetLockTimeout() time.Duration
- func (m *RWMutex) LastLocker() (string, int, time.Duration)
- func (m *RWMutex) Lock()
- func (m *RWMutex) RLock()
- func (m *RWMutex) RUnlock()
- func (m *RWMutex) SetLockTimeout(duration time.Duration, handler func(dur time.Duration, file string, line int))
- func (m *RWMutex) Unlock()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGlobalLockTimeout ¶ added in v0.5.3
func ResetGlobalTimers ¶
func ResetGlobalTimers()
Types ¶
type RWMutex ¶
func (*RWMutex) GetLockTimeout ¶ added in v0.5.3
func (*RWMutex) LastLocker ¶
file and line of last Lock() position in code (if locked!)
func (*RWMutex) Lock ¶
func (m *RWMutex) Lock()
Lock method with deadlock detection and timeout handling
func (*RWMutex) RLock ¶
func (m *RWMutex) RLock()
RLock method with deadlock detection and timeout handling
Click to show internal directories.
Click to hide internal directories.