Rewrote the comments in the libraries under 'includes' in English (excluding those inside folders)
This commit is contained in:
@@ -10,15 +10,15 @@ from w32.win32sync import (
|
||||
|
||||
@t.Object
|
||||
class RWLock:
|
||||
"""基于 SRWLock 的读写锁,支持多读单写,不支持递归。
|
||||
"""SRWLock-based read-write lock that supports multiple readers and single writer, but does not support recursion.
|
||||
|
||||
用法:
|
||||
Usage:
|
||||
rwlock: RWLock = RWLock()
|
||||
rwlock.acquire_read()
|
||||
# ... 读取共享数据
|
||||
# ... read shared data
|
||||
rwlock.release_read()
|
||||
rwlock.acquire_write()
|
||||
# ... 修改共享数据
|
||||
# ... modify shared data
|
||||
rwlock.release_write()
|
||||
"""
|
||||
lock: VOIDPTR
|
||||
|
||||
Reference in New Issue
Block a user