RTEMS
schedulerdefaultmappriority.c
1 /*
2  * Copyright (c) 2016, 2017 embedded brains GmbH
3  *
4  * The license and distribution terms for this file may be
5  * found in the file LICENSE in this distribution or at
6  * http://www.rtems.org/license/LICENSE.
7  */
8 
9 #ifdef HAVE_CONFIG_H
10 #include "config.h"
11 #endif
12 
14 
16  const Scheduler_Control *scheduler,
17  Priority_Control priority
18 )
19 {
20  return SCHEDULER_PRIORITY_MAP( priority );
21 }
22 
24  const Scheduler_Control *scheduler,
25  Priority_Control priority
26 )
27 {
28  return SCHEDULER_PRIORITY_UNMAP( priority );
29 }
uint64_t Priority_Control
The thread priority control.
Definition: priority.h:70
Priority_Control _Scheduler_default_Map_priority(const Scheduler_Control *scheduler, Priority_Control priority)
Returns the scheduler internal thread priority mapped by SCHEDULER_PRIORITY_MAP().
Inlined Routines Associated with the Manipulation of the Scheduler.
#define SCHEDULER_PRIORITY_MAP(priority)
Maps a priority value to support the append indicator.
#define SCHEDULER_PRIORITY_UNMAP(priority)
Returns the plain priority value.
Scheduler control.
Definition: scheduler.h:264
Priority_Control _Scheduler_default_Unmap_priority(const Scheduler_Control *scheduler, Priority_Control priority)
Returns the user visible thread priority unmapped by SCHEDULER_PRIORITY_UNMAP().