C++ コンセプト: BasicLockable
提供: cppreference.com
|
|
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
BasicLockableコンセプトは、実行エージェントのための排他的なブロッキングの意味論(すなわちスレッド)を提供するタイプの最小限の特性について説明します.Original:
The
BasicLockable concept describes the minimal characteristics of types that provide exclusive blocking semantics for execution agents (i.e. threads).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] 要件
Lする型BasicLockableは、次の条件は、その型のオブジェクトmLために満たさなければなりません:Original:
For type
L to be BasicLockable, the following conditions have to be satisfied for an object m of type L:The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
| 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. |