sync

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kmutex

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

Kmutex is a key based mutex, allowing us to lock/unlock specific keys

func NewKmutex

func NewKmutex() Kmutex

NewKmutex creates a new Kmutex

func (*Kmutex) Lock

func (km *Kmutex) Lock(key interface{})

Lock a key

func (*Kmutex) Unlock

func (km *Kmutex) Unlock(key interface{})

Unlock a key

Jump to

Keyboard shortcuts

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