• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

MakefileH A D06-Oct-201773

README.mdH A D06-Oct-2017651

UNLICENSEH A D06-Oct-20171.2 KiB

locker.goH A D06-Oct-20172.4 KiB

session.vimH A D06-Oct-201755

README.md

1Package locker is a simple package to manage named ReadWrite mutexes. These
2appear to be especially useful for synchronizing access to session based
3information in web applications.
4
5The common use case is to use the package level functions, which use a package
6level set of locks (safe to use from multiple goroutines simultaneously).
7However, you may also create a new separate set of locks.
8
9All locks are implemented with read-write mutexes. To use them like a regular
10mutex, simply ignore the RLock/RUnlock functions.
11
12
13### Installation
14
15    go get github.com/BurntSushi/locker
16
17
18### Documentation
19
20http://godoc.org/github.com/BurntSushi/locker
21
22