diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2000-01-05 17:16:48 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2000-01-05 17:16:48 +0000 |
commit | 65800393f6f1d68e0ee6c962cf8f6b4e85cb24a8 (patch) | |
tree | e9b17e3d7e4438a662beadd62bd755a3b206f381 /c/src/exec/posix/inline | |
parent | Added priority conversion between POSIX and core priorities. (diff) | |
download | rtems-65800393f6f1d68e0ee6c962cf8f6b4e85cb24a8.tar.bz2 |
Added priority conversion between POSIX and core.
Diffstat (limited to 'c/src/exec/posix/inline')
-rw-r--r-- | c/src/exec/posix/inline/rtems/posix/mqueue.inl | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/c/src/exec/posix/inline/rtems/posix/mqueue.inl b/c/src/exec/posix/inline/rtems/posix/mqueue.inl index 17156867b8..e6da6674b4 100644 --- a/c/src/exec/posix/inline/rtems/posix/mqueue.inl +++ b/c/src/exec/posix/inline/rtems/posix/mqueue.inl @@ -83,11 +83,26 @@ RTEMS_INLINE_ROUTINE boolean _POSIX_Message_queue_Is_null ( * _POSIX_Message_queue_Priority_to_core */ -RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Message_queue_Priority_to_core( +RTEMS_INLINE_ROUTINE CORE_message_queue_Submit_types _POSIX_Message_queue_Priority_to_core( unsigned int priority ) { - return priority; + return priority * -1; +} + +/* + * _POSIX_Message_queue_Priority_from_core + * + * DESCRIPTION: + * + * XXX + */ + +RTEMS_INLINE_ROUTINE unsigned int _POSIX_Message_queue_Priority_from_core( + CORE_message_queue_Submit_types priority +) +{ + return abs( priority ); } #endif |