summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/include
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-02 15:57:58 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-02 15:57:58 +0000
commit9693fdac7518e4d6d37b41dc1675b4041d54d900 (patch)
tree4d0715e54ebba2681e6e40e1b32881b67cf45de5 /c/src/exec/score/include
parentCorrected spacing. (diff)
downloadrtems-9693fdac7518e4d6d37b41dc1675b4041d54d900.tar.bz2
Added support for message priority as required by POSIX.
Diffstat (limited to 'c/src/exec/score/include')
-rw-r--r--c/src/exec/score/include/rtems/score/coremsg.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/c/src/exec/score/include/rtems/score/coremsg.h b/c/src/exec/score/include/rtems/score/coremsg.h
index 03277e12b7..9e94828468 100644
--- a/c/src/exec/score/include/rtems/score/coremsg.h
+++ b/c/src/exec/score/include/rtems/score/coremsg.h
@@ -56,6 +56,7 @@ typedef struct {
typedef struct {
Chain_Node Node;
+ int priority;
CORE_message_queue_Buffer Contents;
} CORE_message_queue_Buffer_control;
@@ -72,12 +73,17 @@ typedef enum {
* The following enumerated type details the modes in which a message
* may be submitted to a message queue. The message may be posted
* in a send or urgent fashion.
+ *
+ * NOTE: All other values are message priorities. Numerically smaller
+ * priorities indicate higher priority messages.
+ *
+ * XXX these constants should be changed to be compiler dependent.
*/
-typedef enum {
- CORE_MESSAGE_QUEUE_SEND_REQUEST = 0,
- CORE_MESSAGE_QUEUE_URGENT_REQUEST = 1
-} CORE_message_queue_Submit_types;
+#define CORE_MESSAGE_QUEUE_SEND_REQUEST 0x7fffffff
+#define CORE_MESSAGE_QUEUE_URGENT_REQUEST -(0x7fffffff)
+
+typedef int CORE_message_queue_Submit_types;
/*
* Core Message queue handler return statuses.