RTEMS: cpukit/include/rtems/score/schedulercbsimpl.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
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
26#include <rtems/score/schedulercbs.h>
27#include <rtems/score/schedulerimpl.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif /* __cplusplus */
32
46 RTEMS_INLINE_ROUTINE Scheduler_CBS_Node *_Scheduler_CBS_Thread_get_node(
47 Thread_Control *the_thread
48)
49{
50 return (Scheduler_CBS_Node *) _Thread_Scheduler_get_home_node( the_thread );
51}
52
60 RTEMS_INLINE_ROUTINE Scheduler_CBS_Node *_Scheduler_CBS_Node_downcast(
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
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:66
_Scheduler_CBS_Thread_get_node
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
_Scheduler_CBS_Node_downcast
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
_Thread_Scheduler_get_home_node
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
schedulercbs.h
Thread manipulation for the CBS scheduler.
schedulerimpl.h
Inlined Routines Associated with the Manipulation of the Scheduler.
Scheduler_CBS_Node
Definition: schedulercbs.h:138
Scheduler_Node
Scheduler node for per-thread data.
Definition: schedulernode.h:79
_Thread_Control
Definition: thread.h:732