goreentrantlock

package module
v0.0.0-...-235503e Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: GPL-3.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReentrantMutexCheckable

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

just like github.com/AnimusPEXUS/golockercheckable.MutexCheckable: Unlock() on unlocked Mutex - doesn't lead to error

func NewReentrantMutexCheckable

func NewReentrantMutexCheckable(locked bool) *ReentrantMutexCheckable

func (*ReentrantMutexCheckable) IsLocakedByMe

func (self *ReentrantMutexCheckable) IsLocakedByMe() (locked bool, byme bool)

func (*ReentrantMutexCheckable) IsLocked

func (self *ReentrantMutexCheckable) IsLocked() bool

func (*ReentrantMutexCheckable) LocekdByWho

func (self *ReentrantMutexCheckable) LocekdByWho() (locked bool, goid uint64)

func (*ReentrantMutexCheckable) Lock

func (self *ReentrantMutexCheckable) Lock()

func (*ReentrantMutexCheckable) Unlock

func (self *ReentrantMutexCheckable) Unlock()

Jump to

Keyboard shortcuts

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