Changeset 65800393 in rtems


Ignore:
Timestamp:
Jan 5, 2000, 5:16:48 PM (20 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
58243b4
Parents:
c5858ef
Message:

Added priority conversion between POSIX and core.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/inline/rtems/posix/mqueue.inl

    rc5858ef r65800393  
    8484 */
    8585 
    86 RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Message_queue_Priority_to_core(
     86RTEMS_INLINE_ROUTINE CORE_message_queue_Submit_types _POSIX_Message_queue_Priority_to_core(
    8787  unsigned int priority
    8888)
    8989{
    90   return priority;
     90  return priority * -1;
     91}
     92
     93/*
     94 *  _POSIX_Message_queue_Priority_from_core
     95 *
     96 *  DESCRIPTION:
     97 *
     98 *  XXX
     99 */
     100 
     101RTEMS_INLINE_ROUTINE unsigned int _POSIX_Message_queue_Priority_from_core(
     102  CORE_message_queue_Submit_types priority
     103)
     104{
     105  return abs( priority );
    91106}
    92107
  • cpukit/posix/inline/rtems/posix/mqueue.inl

    rc5858ef r65800393  
    8484 */
    8585 
    86 RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Message_queue_Priority_to_core(
     86RTEMS_INLINE_ROUTINE CORE_message_queue_Submit_types _POSIX_Message_queue_Priority_to_core(
    8787  unsigned int priority
    8888)
    8989{
    90   return priority;
     90  return priority * -1;
     91}
     92
     93/*
     94 *  _POSIX_Message_queue_Priority_from_core
     95 *
     96 *  DESCRIPTION:
     97 *
     98 *  XXX
     99 */
     100 
     101RTEMS_INLINE_ROUTINE unsigned int _POSIX_Message_queue_Priority_from_core(
     102  CORE_message_queue_Submit_types priority
     103)
     104{
     105  return abs( priority );
    91106}
    92107
Note: See TracChangeset for help on using the changeset viewer.