RTEMS
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
24 extern "C" {
25 #endif
26 
42 
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 */
This header file defines the status codes and support functions of the Classic API.
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:82
Inlined Routines from the Thread Handler.
static __inline__ 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:2354
#define RTEMS_INLINE_ROUTINE
Gives a hint to the compiler in a function declaration to inline this function.
Definition: basedefs.h:683
const rtems_status_code _Status_Object_name_errors_to_status[]
Status Object Name Errors to Status Array.
Definition: status.c:18