Versions in this module Expand all Collapse all v0 v0.3.4 Apr 29, 2024 Changes in this version + type LockWatcher struct + func New(lock sync.Locker, options LockWatcherOptions) *LockWatcher + func (lw *LockWatcher) GetOptions() LockWatcherOptions + func (lw *LockWatcher) GetStats() LockWatcherStats + func (lw *LockWatcher) Stop() + func (lw *LockWatcher) WriteHtml(writer io.Writer, prefix string) (bool, error) + type LockWatcherOptions struct + CheckInterval time.Duration + Function func() + LogTimeout time.Duration + Logger log.DebugLogger + MaximumTryInterval time.Duration + MinimumTryInterval time.Duration + RFunction func() + type LockWatcherStats struct + NumLockTimeouts uint64 + NumRLockTimeouts uint64 + NumWLockTimeouts uint64 + WaitingForLock bool + WaitingForRLock bool + WaitingForWLock bool + type RWLock interface + RLock func() + RUnlock func() + TryLock func() bool