RTEMS 6.1-rc6
Loading...
Searching...
No Matches
tc-userext.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
11/*
12 * Copyright (C) 2021 embedded brains GmbH & Co. KG
13 *
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions
16 * are met:
17 * 1. Redistributions of source code must retain the above copyright
18 * notice, this list of conditions and the following disclaimer.
19 * 2. Redistributions in binary form must reproduce the above copyright
20 * notice, this list of conditions and the following disclaimer in the
21 * documentation and/or other materials provided with the distribution.
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 * POSSIBILITY OF SUCH DAMAGE.
34 */
35
36#ifndef _TC_USEREXT_H
37#define _TC_USEREXT_H
38
39#include <rtems.h>
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
45void ThreadBeginExtension0( rtems_tcb *executing );
46
47bool ThreadCreateExtension0( rtems_tcb *executing, rtems_tcb *created );
48
49void ThreadDeleteExtension0( rtems_tcb *executing, rtems_tcb *deleted );
50
51void ThreadExittedExtension0( rtems_tcb *executing );
52
53void ThreadRestartExtension0( rtems_tcb *executing, rtems_tcb *restarted );
54
55void ThreadStartExtension0( rtems_tcb *executing, rtems_tcb *started );
56
57void ThreadSwitchExtension0( rtems_tcb *executing, rtems_tcb *heir );
58
59void ThreadTerminateExtension0( rtems_tcb *executing );
60
61void FatalExtension0(
62 rtems_fatal_source source,
63 bool always_set_to_false,
65);
66
67void ThreadBeginExtension1( rtems_tcb *executing );
68
69bool ThreadCreateExtension1( rtems_tcb *executing, rtems_tcb *created );
70
71void ThreadDeleteExtension1( rtems_tcb *executing, rtems_tcb *deleted );
72
73void ThreadExittedExtension1( rtems_tcb *executing );
74
75void ThreadRestartExtension1( rtems_tcb *executing, rtems_tcb *restarted );
76
77void ThreadStartExtension1( rtems_tcb *executing, rtems_tcb *started );
78
79void ThreadSwitchExtension1( rtems_tcb *executing, rtems_tcb *heir );
80
81void ThreadTerminateExtension1( rtems_tcb *executing );
82
83void FatalExtension1(
84 rtems_fatal_source source,
85 bool always_set_to_false,
87);
88
89#ifdef __cplusplus
90}
91#endif
92
93#endif /* _TC_USEREXT_H */
Internal_errors_t rtems_fatal_code
This integer type represents system termination codes.
Definition: extension.h:162
Internal_errors_Source
This type lists the possible sources from which an error can be reported.
Definition: interr.h:63
This header file defines the RTEMS Classic API.
Definition: thread.h:837
Definition: inftrees.h:24