BasicLockable
C++概念:BasicLocable
大BasicLockable
概念描述了为执行代理%28i.e提供排他阻塞语义的类型的最小特征。线程%29。
所需
类型L
成为BasicLockable
,必须满足对象的下列条件m
类型L
*
Expression | Requires | Effects |
---|---|---|
m.lock() | | Blocks until a lock can be obtained for the current execution agent. If an exception is thrown, no lock is obtained. |
m.unlock() | The current execution agent should hold the lock m. | Releases the lock held by the execution agent. Throws no exceptions. |
另见
- 线程支持库
Mutex
Lockable
TimedLockable
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。