diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-09-26 19:27:15 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-09-26 19:27:15 +0000 |
commit | 5e9b32b439627068a0292370fe595220dbfc95a0 (patch) | |
tree | 3740b62de3aaa10140867de33adad9a1fcc15b26 /cpukit/score/inline/rtems/score | |
parent | fixed Id strings (diff) | |
download | rtems-5e9b32b439627068a0292370fe595220dbfc95a0.tar.bz2 |
posix support initially added
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/inline/rtems/score/coremsg.inl | 28 | ||||
-rw-r--r-- | cpukit/score/inline/rtems/score/heap.inl | 2 | ||||
-rw-r--r-- | cpukit/score/inline/rtems/score/priority.inl | 2 | ||||
-rw-r--r-- | cpukit/score/inline/rtems/score/tqdata.inl | 13 |
4 files changed, 43 insertions, 2 deletions
diff --git a/cpukit/score/inline/rtems/score/coremsg.inl b/cpukit/score/inline/rtems/score/coremsg.inl index d1b5429947..6431979dd3 100644 --- a/cpukit/score/inline/rtems/score/coremsg.inl +++ b/cpukit/score/inline/rtems/score/coremsg.inl @@ -181,6 +181,34 @@ STATIC INLINE boolean _CORE_message_queue_Is_null ( return ( the_message_queue == NULL ); } +/*PAGE + * + * _CORE_message_queue_Is_notify_enabled + * + */ + +STATIC INLINE boolean _CORE_message_queue_Is_notify_enabled ( + CORE_message_queue_Control *the_message_queue +) +{ + return (the_message_queue->notify_handler != NULL); +} + +/*PAGE + * + * _CORE_message_queue_Set_notify + * + */ + +STATIC INLINE void _CORE_message_queue_Set_notify ( + CORE_message_queue_Control *the_message_queue, + CORE_message_queue_Notify_Handler the_handler, + void *the_argument +) +{ + the_message_queue->notify_handler = the_handler; + the_message_queue->notify_argument = the_argument; +} #endif /* end of include file */ diff --git a/cpukit/score/inline/rtems/score/heap.inl b/cpukit/score/inline/rtems/score/heap.inl index b3e04a1deb..c32226852e 100644 --- a/cpukit/score/inline/rtems/score/heap.inl +++ b/cpukit/score/inline/rtems/score/heap.inl @@ -17,7 +17,7 @@ #ifndef __HEAP_inl #define __HEAP_inl -#include <rtems/core/address.h> +#include <rtems/score/address.h> /*PAGE * diff --git a/cpukit/score/inline/rtems/score/priority.inl b/cpukit/score/inline/rtems/score/priority.inl index 0ecd3c64a4..64a6c1cf66 100644 --- a/cpukit/score/inline/rtems/score/priority.inl +++ b/cpukit/score/inline/rtems/score/priority.inl @@ -17,7 +17,7 @@ #ifndef __PRIORITY_inl #define __PRIORITY_inl -#include <rtems/core/bitfield.h> +#include <rtems/score/bitfield.h> /*PAGE * diff --git a/cpukit/score/inline/rtems/score/tqdata.inl b/cpukit/score/inline/rtems/score/tqdata.inl index 3168d058f5..89b0241a3e 100644 --- a/cpukit/score/inline/rtems/score/tqdata.inl +++ b/cpukit/score/inline/rtems/score/tqdata.inl @@ -43,5 +43,18 @@ STATIC INLINE boolean _Thread_queue_Is_reverse_search ( return ( the_priority & 0x20 ); } +/*PAGE + * + * _Thread_queue_Get_number_waiting + * + */ + +STATIC INLINE unsigned32 _Thread_queue_Get_number_waiting ( + Thread_queue_Control *the_thread_queue +) +{ + return ( the_thread_queue->count ); +} + #endif /* end of include file */ |