다음을 통해 공유


rethrow_exception

Throws an exception passed as a parameter.

void rethrow_exception(exception_ptr P);

Parameters

Remarks

After you store a caught exception in an exception_ptr object, the primary thread can process the object. In your primary thread, call the rethrow_exception function together with the exception_ptr object as its argument. The rethrow_exception function extracts the exception from the exception_ptr object and then throws the exception in the context of the primary thread.

See Also

Reference

<exception>

Transporting Exceptions Between Threads