RTEMS  5.1
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 
47  Thread_Control *the_thread
48 )
49 {
50  return (Scheduler_CBS_Node *) _Thread_Scheduler_get_home_node( the_thread );
51 }
52 
61  Scheduler_Node *node
62 )
63 {
64  return (Scheduler_CBS_Node *) node;
65 }
66 
69 #ifdef __cplusplus
70 }
71 #endif /* __cplusplus */
72 
73 #endif /* _RTEMS_SCORE_SCHEDULERCBSIMPL_H */
RTEMS_INLINE_ROUTINE Scheduler_CBS_Node * _Scheduler_CBS_Node_downcast(Scheduler_Node *node)
Casts the scheduler node to a scheduler CBS node.
Definition: schedulercbsimpl.h:60
RTEMS_INLINE_ROUTINE Scheduler_CBS_Node * _Scheduler_CBS_Thread_get_node(Thread_Control *the_thread)
Gets the CBS node of the thread.
Definition: schedulercbsimpl.h:46
Inlined Routines Associated with the Manipulation of the Scheduler.
Definition: thread.h:732
Scheduler node for per-thread data.
Definition: schedulernode.h:79
Definition: schedulercbs.h:138
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:66
Thread manipulation for the CBS scheduler.
RTEMS_INLINE_ROUTINE Scheduler_Node * _Thread_Scheduler_get_home_node(const Thread_Control *the_thread)
Gets the scheduler's home node.
Definition: threadimpl.h:1412