C++ コンセプト: Lockable
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
Lockable
コンセプトは試みロックを含むようにBasicLockable
の概念を拡張した.Original:
The
Lockable
concept extends the BasicLockable
concept to include attempted locking.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
する型Lockable
の場合は、上記の条件に加えて、以下を満たしている必要がありますOriginal:
For type
L
to be Lockable
, it must meet the above condition as well as the following: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 | Effects | Return value |
---|---|---|
m.try_lock() | Attempts to acquire the lock for the current execution agent without blocking. If an exception is thrown, no lock is obtained. | true if the lock was acquired, false otherwise |