xlang
v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
std
RWLock.xcs
浏览该文件的文档.
1
4
@Declare
5
interface
RWLock
{
9
void
lockRead
();
10
15
void
unlockRead
();
16
21
bool
trylockRead
();
22
23
27
void
lockWrite
();
28
33
void
unlockWrite
();
34
39
bool
trylockWrite
();
40
};
RWLock
读写锁接口
Definition
RWLock.xcs:5
RWLock.trylockRead
bool trylockRead()
尝试读加锁
RWLock.trylockWrite
bool trylockWrite()
尝试写加锁
RWLock.unlockRead
void unlockRead()
读解锁
RWLock.unlockWrite
void unlockWrite()
写解锁
RWLock.lockWrite
void lockWrite()
写加锁
RWLock.lockRead
void lockRead()
读加锁
制作者
1.9.8