tmu

package
v0.0.0-...-720f34a Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package tmu implements "timed mutexes" which will panic if they're held or blocked for more than a predeterminate amount of time. This can be convenient to debug locking issues.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lock

func Lock(mu *sync.Mutex)

func Unlock

func Unlock(mu *sync.Mutex)

Types

type Mutex

type Mutex sync.Mutex

func (*Mutex) Lock

func (mu *Mutex) Lock()

func (*Mutex) Unlock

func (mu *Mutex) Unlock()

Jump to

Keyboard shortcuts

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