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.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Makefile
README.md initial commit Mar 2, 2014
UNLICENSE initial commit Mar 2, 2014
locker.go fix contention on creating a lock Oct 6, 2017
session.vim

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

You can’t perform that action at this time.