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).
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

[编辑] 要求

对于类型LBasicLockable,必须满足下列条件的对象m类型L
原文:
For type L to be BasicLockable, the following conditions have to be satisfied for an object m of type L:
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
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.

[编辑] 另请参阅