RTEMS: cpukit/include/rtems/score/userext.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
userext.h
Go to the documentation of this file.
1
9/*
10 * COPYRIGHT (c) 1989-2009.
11 * On-Line Applications Research Corporation (OAR).
12 *
13 * The license and distribution terms for this file may be
14 * found in the file LICENSE in this distribution or at
15 * http://www.rtems.org/license/LICENSE.
16 */
17
18#ifndef _RTEMS_SCORE_USEREXT_H
19#define _RTEMS_SCORE_USEREXT_H
20
21#include <rtems/score/interr.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27struct _Thread_Control;
28
29typedef void User_extensions_routine RTEMS_DEPRECATED;
30
71 typedef bool ( *User_extensions_thread_create_extension )(
72 struct _Thread_Control *executing,
73 struct _Thread_Control *created
74);
75
91 typedef void( *User_extensions_thread_delete_extension )(
92 struct _Thread_Control *executing,
93 struct _Thread_Control *deleted
94);
95
111 typedef void( *User_extensions_thread_start_extension )(
112 struct _Thread_Control *executing,
113 struct _Thread_Control *started
114);
115
133 typedef void( *User_extensions_thread_restart_extension )(
134 struct _Thread_Control *executing,
135 struct _Thread_Control *restarted
136);
137
156 typedef void( *User_extensions_thread_switch_extension )(
157 struct _Thread_Control *executing,
158 struct _Thread_Control *heir
159);
160
171 typedef void( *User_extensions_thread_begin_extension )(
172 struct _Thread_Control *executing
173);
174
185 typedef void( *User_extensions_thread_exitted_extension )(
186 struct _Thread_Control *executing
187);
188
203 typedef void( *User_extensions_fatal_extension )(
204 Internal_errors_Source source,
205 bool always_set_to_false,
206 Internal_errors_t code
207);
208
225 typedef void( *User_extensions_thread_terminate_extension )(
226 struct _Thread_Control *terminated
227);
228
232 typedef struct {
233 User_extensions_thread_create_extension thread_create;
234 User_extensions_thread_start_extension thread_start;
235 User_extensions_thread_restart_extension thread_restart;
236 User_extensions_thread_delete_extension thread_delete;
237 User_extensions_thread_switch_extension thread_switch;
238 User_extensions_thread_begin_extension thread_begin;
239 User_extensions_thread_exitted_extension thread_exitted;
240 User_extensions_fatal_extension fatal;
241 User_extensions_thread_terminate_extension thread_terminate;
242} User_extensions_Table;
243
246#ifdef __cplusplus
247}
248#endif
249
250#endif
251/* end of include file */
Internal_errors_Source
Internal_errors_Source
This type lists the possible sources from which an error can be reported.
Definition: interr.h:47
User_extensions_thread_begin_extension
void(* User_extensions_thread_begin_extension)(struct _Thread_Control *executing)
Task begin extension.
Definition: userext.h:171
User_extensions_thread_create_extension
bool(* User_extensions_thread_create_extension)(struct _Thread_Control *executing, struct _Thread_Control *created)
Task create extension.
Definition: userext.h:71
User_extensions_thread_start_extension
void(* User_extensions_thread_start_extension)(struct _Thread_Control *executing, struct _Thread_Control *started)
Task start extension.
Definition: userext.h:111
User_extensions_thread_restart_extension
void(* User_extensions_thread_restart_extension)(struct _Thread_Control *executing, struct _Thread_Control *restarted)
Task restart extension.
Definition: userext.h:133
User_extensions_thread_delete_extension
void(* User_extensions_thread_delete_extension)(struct _Thread_Control *executing, struct _Thread_Control *deleted)
Task delete extension.
Definition: userext.h:91
User_extensions_thread_switch_extension
void(* User_extensions_thread_switch_extension)(struct _Thread_Control *executing, struct _Thread_Control *heir)
Task switch extension.
Definition: userext.h:156
User_extensions_thread_terminate_extension
void(* User_extensions_thread_terminate_extension)(struct _Thread_Control *terminated)
Task termination extension.
Definition: userext.h:225
User_extensions_fatal_extension
void(* User_extensions_fatal_extension)(Internal_errors_Source source, bool always_set_to_false, Internal_errors_t code)
Fatal error extension.
Definition: userext.h:203
User_extensions_thread_exitted_extension
void(* User_extensions_thread_exitted_extension)(struct _Thread_Control *executing)
Task exitted extension.
Definition: userext.h:185
interr.h
Constants and Prototypes Related to the Internal Error Handler.
User_extensions_Table
User extension table.
Definition: userext.h:232
_Thread_Control
Definition: thread.h:732
code
Definition: inftrees.h:24