RTEMS  5.0.0
schedulercbsimpl.h
Go to the documentation of this file.
1 
9 /*
10  * Copyright (c) 2014 embedded brains GmbH. All rights reserved.
11  *
12  * embedded brains GmbH
13  * Dornierstr. 4
14  * 82178 Puchheim
15  * Germany
16  * <rtems@embedded-brains.de>
17  *
18  * The license and distribution terms for this file may be
19  * found in the file LICENSE in this distribution or at
20  * http://www.rtems.org/license/LICENSE.
21  */
22 
23 #ifndef _RTEMS_SCORE_SCHEDULERCBSIMPL_H
24 #define _RTEMS_SCORE_SCHEDULERCBSIMPL_H
25 
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif /* __cplusplus */
32 
39 RTEMS_INLINE_ROUTINE Scheduler_CBS_Node *_Scheduler_CBS_Thread_get_node(
40  Thread_Control *the_thread
41 )
42 {
43  return (Scheduler_CBS_Node *) _Thread_Scheduler_get_home_node( the_thread );
44 }
45 
46 RTEMS_INLINE_ROUTINE Scheduler_CBS_Node *_Scheduler_CBS_Node_downcast(
47  Scheduler_Node *node
48 )
49 {
50  return (Scheduler_CBS_Node *) node;
51 }
52 
55 #ifdef __cplusplus
56 }
57 #endif /* __cplusplus */
58 
59 #endif /* _RTEMS_SCORE_SCHEDULERCBSIMPL_H */
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:65
Inlined Routines Associated with the Manipulation of the Scheduler.
Definition: thread.h:728
Scheduler node for per-thread data.
Definition: schedulernode.h:65
Definition: schedulercbs.h:133
Thread manipulation for the CBS scheduler.