RTEMS: cpukit/include/rtems/rtems/statusimpl.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
statusimpl.h
Go to the documentation of this file.
1
9/* COPYRIGHT (c) 1989-2008.
10 * On-Line Applications Research Corporation (OAR).
11 *
12 * The license and distribution terms for this file may be
13 * found in the file LICENSE in this distribution or at
14 * http://www.rtems.org/license/LICENSE.
15 */
16
17#ifndef _RTEMS_RTEMS_STATUSIMPL_H
18#define _RTEMS_RTEMS_STATUSIMPL_H
19
20#include <rtems/rtems/status.h>
21#include <rtems/score/threadimpl.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
41extern const rtems_status_code _Status_Object_name_errors_to_status[];
42
43 RTEMS_INLINE_ROUTINE rtems_status_code _Status_Get(
44 Status_Control status
45)
46{
47 return (rtems_status_code) STATUS_GET_CLASSIC( status );
48}
49
50 RTEMS_INLINE_ROUTINE rtems_status_code _Status_Get_after_wait(
51 const Thread_Control *executing
52)
53{
54 return _Status_Get( _Thread_Wait_get_status( executing ) );
55}
56
59#ifdef __cplusplus
60}
61#endif
62
63#endif
64/* end of include file */
_Status_Object_name_errors_to_status
const rtems_status_code _Status_Object_name_errors_to_status[]
Status Object Name Errors to Status Array.
Definition: status.c:18
rtems_status_code
rtems_status_code
Classic API Status.
Definition: status.h:43
RTEMS_INLINE_ROUTINE
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:66
_Thread_Wait_get_status
RTEMS_INLINE_ROUTINE Status_Control _Thread_Wait_get_status(const Thread_Control *the_thread)
Get the status of the wait return code of the thread.
Definition: threadimpl.h:2328
status.h
_Thread_Control
Definition: thread.h:732
threadimpl.h
Inlined Routines from the Thread Handler.