nn::os::ARM::SetUserExceptionHandlerLocal Function

Syntax

void SetUserExceptionHandlerLocal(
     UserExceptionHandler pHandler,
     uptr stackBottom,
     ExceptionBuffer * pExceptionBuffer
);

template <typename T>
void SetUserExceptionHandlerLocal(
     UserExceptionHandler pHandler,
     T * pStack,
     ExceptionBuffer * pExceptionBuffer
);

List of Overloaded Member Functions

SetUserExceptionHandlerLocal ( UserExceptionHandler, uptr, ExceptionBuffer * ) Sets the local thread exception handler.
SetUserExceptionHandlerLocal ( UserExceptionHandler, T *, ExceptionBuffer * ) Sets the local thread exception handler.

Description of SetUserExceptionHandlerLocal ( UserExceptionHandler, uptr, ExceptionBuffer * )

Exception handler settings exist for each thread. If an exception occurs, an exception handler is called based on the settings for the thread in question. If an exception handler has not been set for the particular thread in question, an exception handler based on settings for the main thread is called.

This function sets the exception handler for threads that call this function. If this function is called by the main thread, the result is the same as calling SetUserExceptionHandler.

For information on sharing exception handlers, see the SetUserExceptionHandler function.

Outside of the main thread, this function is thread-safe. In the main thread, it requires mutual exclusion with the SetUserExceptionHandler function.

Description of SetUserExceptionHandlerLocal ( UserExceptionHandler, T *, ExceptionBuffer * )

This is a wrapper function for accepting the stack used by the exception handler via a stack-type member function.

For details, see SetUserExceptionHandlerLocal(UserExceptionHandler, uptr, ExceptionBuffer*).

Outside of the main thread, this function is thread-safe. In the main thread, it requires mutual exclusion with the SetUserExceptionHandler function.


CONFIDENTIAL