Skip to content

A simple Golang package for conveniently using named read/write locks. Useful for synchronizing access to session based storage in web applications.

License

Notifications You must be signed in to change notification settings

BurntSushi/locker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple Golang package for conveniently using named read/write locks. Useful for synchronizing access to session based storage in web applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published