scheduler_worker_creation_error 类
此类描述因未能在并发运行时中创建辅助执行上下文而引发的异常。
语法
class scheduler_worker_creation_error : public scheduler_resource_allocation_error;
成员
公共构造函数
名称 | 描述 |
---|---|
scheduler_worker_creation_error | 已重载。 构造 scheduler_worker_creation_error 对象。 |
备注
该异常通常是在调用并发运行时内创建执行上下文的操作系统失败时引发。 执行上下文是在并发运行时中执行任务的线程。 通常通过调用 Win32 方法 GetLastError
返回的错误代码将转换为类型 HRESULT
的一个值,并且可以使用基类方法 get_error_code
检索。
继承层次结构
exception
scheduler_resource_allocation_error
scheduler_worker_creation_error
要求
标头:concrt.h
命名空间: 并发
scheduler_worker_creation_error
构造 scheduler_worker_creation_error
对象。
scheduler_worker_creation_error(
_In_z_ const char* _Message,
HRESULT _Hresult) throw();
explicit _CRTIMP scheduler_worker_creation_error(
HRESULT _Hresult) throw();
参数
_Message
错误的描述性消息。
_Hresult
导致异常的错误的 HRESULT
值。