missing_wait 類別

這個類別描述 task_groupstructured_task_group 物件的建構函式執行時卻仍有工作排程至該物件所擲回的例外狀況。 如果例外狀況導致堆疊回溯而達成解構函式,則永遠不會擲回此例外狀況。

語法

class missing_wait : public std::exception;

成員

公用建構函式

名稱 描述
missing_wait 已多載。 建構 missing_wait 物件。

備註

沒有例外狀況流程,您必須負責呼叫 waitstructured_task_group 物件的 或 run_and_wait 方法 task_group ,再讓該物件解構。 執行時間會擲回此例外狀況,表示您忘記呼叫 waitrun_and_wait 方法。

繼承階層架構

exception

missing_wait

需求

標頭: concrt.h

命名空間: concurrency

missing_wait

建構 missing_wait 物件。

explicit _CRTIMP missing_wait(_In_z_ const char* _Message) throw();

missing_wait() throw();

參數

_消息
錯誤的描述性訊息。

另請參閱

concurrency 命名空間
task_group 類別

run_and_wait
structured_task_group 類別