mutex

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2016 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lock

func Lock(owner, id string)

Lock create new locker for provided id if it is not exists or takes existing, then locks it

func Unlock

func Unlock(owner, id string)

Unlock takes existing locker from map and unlocks it

func UnlockForOwner

func UnlockForOwner(owner string)

UnlockForOwner unlocks all lockers locked by owner

Types

This section is empty.

Jump to

Keyboard shortcuts

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