Share via


Classe scheduler_resource_allocation_error

Questa classe descrive un'eccezione generata a causa dell'errore per acquisire una risorsa critica nel runtime di concorrenza.

Sintassi

class scheduler_resource_allocation_error : public std::exception;

Membri

Costruttori pubblici

Nome Descrizione
scheduler_resource_allocation_error Con overload. Costruisce un oggetto scheduler_resource_allocation_error.

Metodi pubblici

Nome Descrizione
get_error_code Restituisce il codice di errore che ha causato l'eccezione.

Osservazioni:

Questa eccezione viene in genere generata quando una chiamata al sistema operativo dall'interno del runtime di concorrenza ha esito negativo. Il codice di errore generalmente restituito da una chiamata al metodo Win32 GetLastError viene convertito in un valore di tipo HRESULT e può essere recuperato utilizzando il metodo get_error_code.

Gerarchia di ereditarietà

exception

scheduler_resource_allocation_error

Requisiti

Intestazione: concrt.h

Spazio dei nomi: Concurrency

get_error_code

Restituisce il codice di errore che ha causato l'eccezione.

HRESULT get_error_code() const throw();

Valore restituito

Valore HRESULT dell'errore che ha causato l'eccezione.

scheduler_resource_allocation_error

Costruisce un oggetto scheduler_resource_allocation_error.

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

explicit _CRTIMP scheduler_resource_allocation_error(
    HRESULT _Hresult) throw();

Parametri

_Messaggio
Messaggio descrittivo dell'errore.

_Hresult
Valore HRESULT dell'errore che ha causato l'eccezione.

Vedi anche

Spazio dei nomi concurrency