trackedlock

package
v0.0.0-...-653efa9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutex

type Mutex struct {
	// contains filtered or unexported fields
}

The Mutex type that we export, which wraps sync.Mutex to add tracking of lock hold time and the stack trace of the locker.

func (*Mutex) Lock

func (m *Mutex) Lock()

Tracked Mutex API

func (*Mutex) Unlock

func (m *Mutex) Unlock()

type MutexTrack

type MutexTrack struct {
	// contains filtered or unexported fields
}

Track a Mutex or RWMutex held in exclusive mode (lockCnt is also used to track the number of shared lockers)

type RWMutex

type RWMutex struct {
	// contains filtered or unexported fields
}

The RWMutex type that we export, which wraps sync.RWMutex to add tracking of lock hold time and the stack trace of the locker.

func (*RWMutex) Lock

func (m *RWMutex) Lock()

Tracked RWMutex API

func (*RWMutex) RLock

func (m *RWMutex) RLock()

func (*RWMutex) RUnlock

func (m *RWMutex) RUnlock()

func (*RWMutex) Unlock

func (m *RWMutex) Unlock()

type RWMutexTrack

type RWMutexTrack struct {
	// contains filtered or unexported fields
}

Track an RWMutex

func (*RWMutexTrack) DLMUnlockTrack

func (rwmt *RWMutexTrack) DLMUnlockTrack(lck interface{})

func (*RWMutexTrack) LockTrack

func (rwmt *RWMutexTrack) LockTrack(lck interface{})

Direct access to trackedlock API for DLM locks

func (*RWMutexTrack) RLockTrack

func (rwmt *RWMutexTrack) RLockTrack(lck interface{})

func (*RWMutexTrack) RUnlockTrack

func (rwmt *RWMutexTrack) RUnlockTrack(lck interface{})

func (*RWMutexTrack) UnlockTrack

func (rwmt *RWMutexTrack) UnlockTrack(lck interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL