multilock

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiLock

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

A multi lock type

var MLock *MultiLock

func GetMultiLock

func GetMultiLock() *MultiLock

func NewMultiLock

func NewMultiLock() *MultiLock

NewMultiLock create a new multiple lock

func (*MultiLock) Lock

func (l *MultiLock) Lock(key interface{})

func (*MultiLock) RLock

func (l *MultiLock) RLock(key interface{})

func (*MultiLock) RUnlock

func (l *MultiLock) RUnlock(key interface{})

func (*MultiLock) Unlock

func (l *MultiLock) Unlock(key interface{})

Jump to

Keyboard shortcuts

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