This class describes an exception thrown because of a failure to acquire a critical resource in the Concurrency Runtime.
Overloaded. Constructs a scheduler_resource_allocation_error object.
Returns the error code that caused the exception.
This exception is typically thrown when a call to the operating system from within the Concurrency Runtime fails. 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 get_error_code method.