package
Version:
v0.1.9
Opens a new window with list of versions in this module.
Published: Aug 9, 2021
License: MIT
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
¶
RWMutex 读写锁
Create 创建读写锁,传入的 safe表示该读写锁是否支持并发安全,默认是 false
New 创建读写锁,传入的 safe表示该读写锁是否支持并发安全,默认是 false
RLock 读加锁 如果不是并发安全锁,则什么都不做
RUnlock 读解锁 如果不是并发安全锁,则什么都不做
Unlock 解锁 如果不是并发安全锁,则什么都不做
Source Files
¶
Click to show internal directories.
Click to hide internal directories.