Changeset b302d527 in rtems


Ignore:
Timestamp:
01/05/00 17:20:07 (24 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
99e7ab89
Parents:
466b8882
Message:

+ Added return priority from message seize.
+ Changed priority to be based off of min and max int.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/include/rtems/score/coremsg.h

    r466b8882 rb302d527  
    2121#endif
    2222
     23#include <limits.h>
    2324#include <rtems/score/thread.h>
    2425#include <rtems/score/threadq.h>
     
    7778 *         priorities indicate higher priority messages.
    7879 *
    79  *  XXX these constants should be changed to be compiler dependent.
    80  */
    81  
    82 #define  CORE_MESSAGE_QUEUE_SEND_REQUEST   0x7fffffff
    83 #define  CORE_MESSAGE_QUEUE_URGENT_REQUEST -(0x7fffffff)
    84 
     80 */
     81
     82#define  CORE_MESSAGE_QUEUE_SEND_REQUEST   INT_MAX
     83#define  CORE_MESSAGE_QUEUE_URGENT_REQUEST INT_MIN
     84 
    8585typedef int CORE_message_queue_Submit_types;
    8686
     
    252252 
    253253void _CORE_message_queue_Seize(
    254   CORE_message_queue_Control *the_message_queue,
    255   Objects_Id                  id,
    256   void                       *buffer,
    257   unsigned32                 *size,
    258   boolean                     wait,
    259   Watchdog_Interval           timeout
     254  CORE_message_queue_Control      *the_message_queue,
     255  Objects_Id                       id,
     256  void                            *buffer,
     257  unsigned32                      *size,
     258  boolean                          wait,
     259  CORE_message_queue_Submit_types *priority,
     260  Watchdog_Interval                timeout
    260261);
    261262
  • cpukit/score/include/rtems/score/coremsg.h

    r466b8882 rb302d527  
    2121#endif
    2222
     23#include <limits.h>
    2324#include <rtems/score/thread.h>
    2425#include <rtems/score/threadq.h>
     
    7778 *         priorities indicate higher priority messages.
    7879 *
    79  *  XXX these constants should be changed to be compiler dependent.
    80  */
    81  
    82 #define  CORE_MESSAGE_QUEUE_SEND_REQUEST   0x7fffffff
    83 #define  CORE_MESSAGE_QUEUE_URGENT_REQUEST -(0x7fffffff)
    84 
     80 */
     81
     82#define  CORE_MESSAGE_QUEUE_SEND_REQUEST   INT_MAX
     83#define  CORE_MESSAGE_QUEUE_URGENT_REQUEST INT_MIN
     84 
    8585typedef int CORE_message_queue_Submit_types;
    8686
     
    252252 
    253253void _CORE_message_queue_Seize(
    254   CORE_message_queue_Control *the_message_queue,
    255   Objects_Id                  id,
    256   void                       *buffer,
    257   unsigned32                 *size,
    258   boolean                     wait,
    259   Watchdog_Interval           timeout
     254  CORE_message_queue_Control      *the_message_queue,
     255  Objects_Id                       id,
     256  void                            *buffer,
     257  unsigned32                      *size,
     258  boolean                          wait,
     259  CORE_message_queue_Submit_types *priority,
     260  Watchdog_Interval                timeout
    260261);
    261262
Note: See TracChangeset for help on using the changeset viewer.