https://github.com/burntsushi/locker
A simple Golang package for conveniently using named read/write locks. Useful for synchronizing access to session based storage in web applications.
https://github.com/burntsushi/locker
Last synced: 3 months ago
JSON representation
A simple Golang package for conveniently using named read/write locks. Useful for synchronizing access to session based storage in web applications.
- Host: GitHub
- URL: https://github.com/burntsushi/locker
- Owner: BurntSushi
- License: unlicense
- Created: 2014-03-02T04:43:38.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-10-06T23:06:39.000Z (about 8 years ago)
- Last Synced: 2025-01-17T04:17:14.302Z (9 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 34
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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