The highest tagged major version is
v3.
package
Version:
v2.1.2
Opens a new window with list of versions in this module.
Published: Jun 3, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewLocker 内存锁模块,支持按照给定键名动态生成互斥锁,并发安全并支持Try*Lock特性.
使用场景: 需要动态创建互斥锁,或者需要维护大量动态锁的场景.
PS:
(1) 当维护大量动态互斥锁的场景时,如果不再使用的互斥锁对象,请手动调用 Remove() 删除掉;
(2) 可以锁 "关键词";
(3) 支持 "读写锁".
Source Files
¶
Click to show internal directories.
Click to hide internal directories.