scheduler_worker_creation_error 클래스

이 클래스는 동시성 런타임에서 작업자 실행 컨텍스트를 만들지 못해 발생하는 예외를 설명합니다.

구문

class scheduler_worker_creation_error : public scheduler_resource_allocation_error;

멤버

공용 생성자

속성 설명
scheduler_worker_creation_error 오버로드됨. scheduler_worker_creation_error 개체를 생성합니다.

설명

이 예외는 일반적으로 동시성 런타임 내에서 실행 컨텍스트를 생성하기 위한 운영 체제 호출이 실패할 때 throw됩니다. 실행 컨텍스트는 동시성 런타임에서 작업을 실행하는 스레드입니다. 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();

매개 변수

_메시지
오류 설명 메시지입니다.

_Hresult
HRESULT 예외를 발생시킨 오류의 값입니다.

참고 항목

concurrency 네임스페이스