nn::os::ARM::SetUserExceptionHandlerLocal Function

Syntax

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

Template Arguments

Name Description
T Stack type.

Parameters

Name Description
in pHandler Specifies the exception handler called when an exception occurs.
in pStack Specifies the stack to use for the exception handler.
in pExceptionBuffer Specifies a buffer for storing exception information.

Return Values

None.

Description

Sets the local thread exception handler.

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.

Revision History

2012/04/23
Added a description about thread safety.

CONFIDENTIAL