Documentation
¶
Overview ¶
Package debug provides utilities for debugging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RWMutexStackBufferLength ¶
func RWMutexStackBufferLength() int
RWMutexStackBufferLength returns the length of the RWMutex stack buffer
func SetRWMutexStackBufferLength ¶
func SetRWMutexStackBufferLength(value int)
SetRWMutexStackBufferLength sets the length of the RWMutex stack buffer
Types ¶
type RWMutex ¶
type RWMutex struct { Name string Log log.Logger Writer io.Writer // contains filtered or unexported fields }
RWMutex is a debug wrapper for sync.RWMutex
func (*RWMutex) RLocker ¶
RLocker returns a Locker interface that implements the Lock and Unlock methods by calling rw.RLock and rw.RUnlock.
func (*RWMutex) ReportEvery ¶
func (m *RWMutex) ReportEvery(interval time.Duration) close.SimpleCloser
ReportEvery will report the state of the RWMutex at a regular interval
Click to show internal directories.
Click to hide internal directories.