Documentation
¶
Index ¶
- func GetGlobalLockTimeout() time.Duration
- func ResetGlobalTimers()
- func SetGlobalLockTimeout(duration time.Duration, handler func(dur time.Duration, file string, line int))
- type GoroutineID
- type RWMutex
- func (m *RWMutex) GetLockTimeout() time.Duration
- func (m *RWMutex) LastLocker() (string, int, time.Duration)
- func (m *RWMutex) Lock(goid GoroutineID)
- func (m *RWMutex) RLock(goid GoroutineID)
- func (m *RWMutex) RUnlock(goid GoroutineID)
- func (m *RWMutex) SetLockTimeout(duration time.Duration, handler func(dur time.Duration, file string, line int))
- func (m *RWMutex) Unlock(goid GoroutineID)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGlobalLockTimeout ¶ added in v0.5.3
func ResetGlobalTimers ¶
func ResetGlobalTimers()
Types ¶
type GoroutineID ¶ added in v1.0.0
type GoroutineID int64
func GetGoroutineId ¶ added in v1.0.0
func GetGoroutineId() GoroutineID
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(goid GoroutineID)
Lock method with deadlock detection and timeout handling goid from GetGoroutineId() !
func (*RWMutex) RLock ¶
func (m *RWMutex) RLock(goid GoroutineID)
RLock method with deadlock detection and timeout handling goid from GetGoroutineId() !
func (*RWMutex) RUnlock ¶
func (m *RWMutex) RUnlock(goid GoroutineID)
RUnlock method goid from GetGoroutineId() !
func (*RWMutex) SetLockTimeout ¶
func (m *RWMutex) SetLockTimeout(duration time.Duration, handler func(dur time.Duration, file string, line int))
SetLockTimeout sets the lock timeout and handler for an instance of RWMutex if handler == nil or duration == 0, checking is turned off
func (*RWMutex) Unlock ¶
func (m *RWMutex) Unlock(goid GoroutineID)
Unlock method goid from GetGoroutineId() !
Click to show internal directories.
Click to hide internal directories.