C++ 概念: BasicLockable

来自cppreference.com
< cpp‎ | concept

 
 
 
BasicLockable概念描述了最小的特点,类型,提供独家阻塞语义执行代理(即线程).
原文:
The BasicLockable concept describes the minimal characteristics of types that provide exclusive blocking semantics for execution agents (i.e. threads).
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

[编辑] 要求

对于类型LBasicLockable,必须满足下列条件的对象m类型L
原文:
For type L to be BasicLockable, the following conditions have to be satisfied for an object m of type 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.

[编辑] 另请参阅