locker

package
v0.18.3-0...-c90ca1e Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GlobalLock

func GlobalLock() error

GlobalLock locks on port

func GlobalTryLock

func GlobalTryLock() (bool, error)

GlobalTryLock ...

func GlobalUnlock

func GlobalUnlock() error

GlobalUnlock removes the lock if im the last global unlock to be called; this needs to be called EXACTLY he same number of tiems as lock

func LocalLock

func LocalLock() error

LocalLock locks on port

func LocalTryLock

func LocalTryLock() (bool, error)

LocalTryLock ...

func LocalUnlock

func LocalUnlock() (err error)

LocalUnlock ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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