Expand description
Common guard types for synchronized collections 同步集合的通用守护类型 Common guard types for synchronized collections 同步集合的通用守护类型
This module provides reusable guard types that can be shared between
SyncVec, SyncHashMap, and other synchronized collections.
此模块提供可在 SyncVec、SyncHashMap 和其他同步集合之间共享的可重用守护类型。
Structs§
- Entry
Guard - Write guard for entry operations, holding structure write lock and value write lock 用于 entry 操作的写守护者,持有结构写锁和值的写锁
- MutRef
Guard - Mutable guard without value lock, only structure lock (mutable access) 无值锁的可变守护者,只有结构锁(可变访问)
- Read
Guard - Read guard with value read lock, holding structure read lock and value read lock 带值读锁的读守护者,持有结构读锁和值的读锁
- RefGuard
- Read guard without value lock, only structure lock (read-only access) 无值锁的读守护者,只有结构锁(只读访问)
- Write
Guard - Write guard with value write lock, holding structure read lock and value write lock 带值写锁的写守护者,持有结构读锁和值的写锁