Rewrote the comments in the libraries under 'includes' in English (excluding those inside folders)

This commit is contained in:
2026-07-29 23:34:36 +08:00
parent 3633be1995
commit a2cc28a6ab
54 changed files with 7091 additions and 899 deletions

View File

@@ -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