Ignore:
Timestamp:
Jun 28, 2019, 6:30:11 AM (8 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b89d6cc
Parents:
c43071f
Message:

score: Add and use _Thread_Get_unmapped_priority().

Add and use _Thread_Get_unmapped_real_priority().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/score/schedulerimpl.h

    rc43071f r5803f37  
    3939 * @{
    4040 */
    41 
    42 /**
    43  * @brief Maps a priority value to support the append indicator.
    44  */
    45 #define SCHEDULER_PRIORITY_MAP( priority ) ( ( priority ) << 1 )
    46 
    47 /**
    48  * @brief Returns the plain priority value.
    49  */
    50 #define SCHEDULER_PRIORITY_UNMAP( priority ) ( ( priority ) >> 1 )
    51 
    52 /**
    53  * @brief Clears the priority append indicator bit.
    54  */
    55 #define SCHEDULER_PRIORITY_PURIFY( priority )  \
    56   ( ( priority ) & ~( (Priority_Control) SCHEDULER_PRIORITY_APPEND_FLAG ) )
    57 
    58 /**
    59  * @brief Returns the priority control with the append indicator bit set.
    60  */
    61 #define SCHEDULER_PRIORITY_APPEND( priority )  \
    62   ( ( priority ) | SCHEDULER_PRIORITY_APPEND_FLAG )
    63 
    64 /**
    65  * @brief Returns true, if the item should be appended to its priority group,
    66  * otherwise returns false and the item should be prepended to its priority
    67  * group.
    68  */
    69 #define SCHEDULER_PRIORITY_IS_APPEND( priority ) \
    70   ( ( ( priority ) & SCHEDULER_PRIORITY_APPEND_FLAG ) != 0 )
    7141
    7242/**
Note: See TracChangeset for help on using the changeset viewer.