Skip to content
Sections
>> Trisquel >> 套件 >> nabia >> devel >> golang-github-burntsushi-locker-dev
nabia  ] [  aramo  ]
[ 原始碼: golang-github-burntsushi-locker  ]

套件: golang-github-burntsushi-locker-dev (0.0~git20171006.a6e239e-1)

simple Go package for conveniently using named read/write locks

Package locker is a simple Go 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.

下載 golang-github-burntsushi-locker-dev

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 3.4 kB17 kB [文件列表]