std::thread::detach
提供: cppreference.com
|
|
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
| void detach(); |
(C++11およびそれ以降) | |
実行が独立して継続できるように、スレッドオブジェクトからスレッドの実行を分離します。割り当てられているすべてのリソースは、スレッドが終了すると解放されます.
Original:
Separates the thread of execution from the thread object, allowing execution to continue independently. Any allocated resources will be freed once the thread exits.
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.
detachを呼び出した後、次の条件が保持されますOriginal:
After calling
detach, the following conditions will hold: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.
- *thisは、もはや任意のスレッドを所有していませんOriginal:*this no longer owns any threadThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - joinable() == false
- get_id() == std::thread::id()
目次 |
[編集] パラメータ
(なし)
[編集] 値を返します
(なし)
[編集] 例外
std::system_errorjoinable() == false場合、またはエラーが発生.
Original:
std::system_error if joinable() == false or an error occurs.
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.
[編集] 例
| This section is incomplete Reason: no example |
[編集] 参照
| その実行を終了するスレッドの終了を待ちます Original: waits for a thread to finish its execution The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
| スレッドが合流可能であるかどうかのチェックは、すなわち潜在的に並列コンテキストで実行されている Original: checks whether the thread is joinable, i.e. potentially running in parallel context The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |

