1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" />
7<title>SetUserExceptionHandlerLocal</title>
8  </head>
9  <body>
10<h1><a href="../../../nn/Overview.html">nn</a>::<a href="../../../nn/os/Overview.html">os</a>::<a href="../../../nn/os/ARM/Overview.html">ARM</a>::SetUserExceptionHandlerLocal Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14void SetUserExceptionHandlerLocal(
15     <a href="../../../nn/os/ARM/UserExceptionHandler.html">UserExceptionHandler</a> pHandler,
16     <a href="../../../nn_types/uptr.html">uptr</a> stackBottom,
17     <a href="../../../nn/os/ARM/ExceptionBuffer/Overview.html">ExceptionBuffer</a> * pExceptionBuffer
18);
19
20template &lt;typename T&gt;
21void SetUserExceptionHandlerLocal(
22     <a href="../../../nn/os/ARM/UserExceptionHandler.html">UserExceptionHandler</a> pHandler,
23     T * pStack,
24     <a href="../../../nn/os/ARM/ExceptionBuffer/Overview.html">ExceptionBuffer</a> * pExceptionBuffer
25);
26</pre>
27    </div>
28<h2>List of Overloaded Member Functions</h2>
29    <div class="section">
30      <table class="members">
31        <tr>
32          <td>
33<a href="./SetUserExceptionHandlerLocal(0).html">SetUserExceptionHandlerLocal ( UserExceptionHandler, uptr, ExceptionBuffer * ) </a>
34          </td>
35<td>Sets the local thread exception handler.</td>
36        </tr>
37        <tr>
38          <td>
39<a href="./SetUserExceptionHandlerLocal(1).html">SetUserExceptionHandlerLocal ( UserExceptionHandler, T *, ExceptionBuffer * ) </a>
40          </td>
41<td>Sets the local thread exception handler.</td>
42        </tr> </table>
43    </div>
44<h2>Description of SetUserExceptionHandlerLocal ( UserExceptionHandler, uptr, ExceptionBuffer * )</h2>
45<div class="section"><p>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.</p><p>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 <a href="../../../nn/os/ARM/SetUserExceptionHandler.html"><CODE>SetUserExceptionHandler</CODE></a>.</p><p>For information on sharing exception handlers, see the <a href="../../../nn/os/ARM/SetUserExceptionHandler.html"><CODE>SetUserExceptionHandler</CODE></a> function.</p><p>Outside of the main thread, this function is thread-safe. In the main thread, it requires mutual exclusion with the <CODE><a href="../../../nn/os/ARM/SetUserExceptionHandler.html">SetUserExceptionHandler</a></CODE> function.</p></div>
46<h2>Description of SetUserExceptionHandlerLocal ( UserExceptionHandler, T *, ExceptionBuffer * )</h2>
47<div class="section"><p>This is a wrapper function for accepting the stack used by the exception handler via a stack-type member function.</p><p>For details, see <CODE><a href="../../../nn/os/ARM/SetUserExceptionHandlerLocal.html">SetUserExceptionHandlerLocal(UserExceptionHandler, uptr, ExceptionBuffer*)</a></CODE>.</p><p>Outside of the main thread, this function is thread-safe. In the main thread, it requires mutual exclusion with the <CODE><a href="../../../nn/os/ARM/SetUserExceptionHandler.html">SetUserExceptionHandler</a></CODE> function.</p></div>
48  <hr><p>CONFIDENTIAL</p></body>
49</html>