共用方式為


missing_wait 類別

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

class missing_wait : public std::exception;

成員

公用建構函式

名稱

描述

missing_wait::missing_wait 建構函式

多載。 建構 missing_wait 物件。

備註

例外狀況流程不存在,您必須先呼叫 task_groupstructured_task_group 物件的 waitrun_and_wait方法,然後才能解構該物件。 執行階段會擲回這個例外狀況,表示您忘了呼叫 wait run_and_wait 方法。

繼承階層架構

exception

missing_wait

需求

標頭: concrt.h

**命名空間:**並行

請參閱

參考

Concurrency 命名空間

task_group 類別

task_group::wait 方法

structured_task_group 類別

structured_task_group::wait 方法

其他資源

task_group::run_and_wait 方法

structured_task_group::run_and_wait 方法