buildkit/vendor/github.com/BurntSushi/locker
Tonis Tiigi a506f86184 vendor: update vendored deps
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2017-10-06 16:28:22 -07:00
..
README.md source: add git source 2017-07-10 22:19:05 -07:00
UNLICENSE source: add git source 2017-07-10 22:19:05 -07:00
locker.go vendor: update vendored deps 2017-10-06 16:28:22 -07:00

README.md

Package locker is a simple package to manage named ReadWrite mutexes. These appear to be especially useful for synchronizing access to session based information in web applications.

The common use case is to use the package level functions, which use a package level set of locks (safe to use from multiple goroutines simultaneously). However, you may also create a new separate set of locks.

All locks are implemented with read-write mutexes. To use them like a regular mutex, simply ignore the RLock/RUnlock functions.

Installation

go get github.com/BurntSushi/locker

Documentation

http://godoc.org/github.com/BurntSushi/locker