Skip to content

Latest commit

 

History

History
68 lines (44 loc) · 2.05 KB

scheduler-worker-creation-error-class.md

File metadata and controls

68 lines (44 loc) · 2.05 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: scheduler_worker_creation_error Class
scheduler_worker_creation_error Class
11/04/2016
scheduler_worker_creation_error
CONCRT/concurrency::scheduler_worker_creation_error
CONCRT/concurrency::scheduler_worker_creation_error::scheduler_worker_creation_error
scheduler_worker_creation_error class
4aec1c3e-c32a-41b2-899d-2d898f23b3c7

scheduler_worker_creation_error Class

This class describes an exception thrown because of a failure to create a worker execution context in the Concurrency Runtime.

Syntax

class scheduler_worker_creation_error : public scheduler_resource_allocation_error;

Members

Public Constructors

Name Description
scheduler_worker_creation_error Overloaded. Constructs a scheduler_worker_creation_error object.

Remarks

This exception is typically thrown when a call to the operating system to create execution contexts from within the Concurrency Runtime fails. Execution contexts are threads that execute tasks in the Concurrency Runtime. The error code which would normally be returned from a call to the Win32 method GetLastError is converted to a value of type HRESULT and can be retrieved using the base class method get_error_code.

Inheritance Hierarchy

exception

scheduler_resource_allocation_error

scheduler_worker_creation_error

Requirements

Header: concrt.h

Namespace: concurrency

scheduler_worker_creation_error

Constructs a scheduler_worker_creation_error object.

scheduler_worker_creation_error(
    _In_z_ const char* _Message,
    HRESULT _Hresult) throw();

explicit _CRTIMP scheduler_worker_creation_error(
    HRESULT _Hresult) throw();

Parameters

_Message
A descriptive message of the error.

_Hresult
The HRESULT value of the error that caused the exception.

See also

concurrency Namespace