forked from Imagelibrary/rtems
+ Added return priority from message seize.
+ Changed priority to be based off of min and max int.
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <limits.h>
|
||||||
#include <rtems/score/thread.h>
|
#include <rtems/score/thread.h>
|
||||||
#include <rtems/score/threadq.h>
|
#include <rtems/score/threadq.h>
|
||||||
#include <rtems/score/priority.h>
|
#include <rtems/score/priority.h>
|
||||||
@@ -76,11 +77,10 @@ typedef enum {
|
|||||||
* NOTE: All other values are message priorities. Numerically smaller
|
* NOTE: All other values are message priorities. Numerically smaller
|
||||||
* priorities indicate higher priority messages.
|
* priorities indicate higher priority messages.
|
||||||
*
|
*
|
||||||
* XXX these constants should be changed to be compiler dependent.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define CORE_MESSAGE_QUEUE_SEND_REQUEST 0x7fffffff
|
#define CORE_MESSAGE_QUEUE_SEND_REQUEST INT_MAX
|
||||||
#define CORE_MESSAGE_QUEUE_URGENT_REQUEST -(0x7fffffff)
|
#define CORE_MESSAGE_QUEUE_URGENT_REQUEST INT_MIN
|
||||||
|
|
||||||
typedef int CORE_message_queue_Submit_types;
|
typedef int CORE_message_queue_Submit_types;
|
||||||
|
|
||||||
@@ -256,6 +256,7 @@ void _CORE_message_queue_Seize(
|
|||||||
void *buffer,
|
void *buffer,
|
||||||
unsigned32 *size,
|
unsigned32 *size,
|
||||||
boolean wait,
|
boolean wait,
|
||||||
|
CORE_message_queue_Submit_types *priority,
|
||||||
Watchdog_Interval timeout
|
Watchdog_Interval timeout
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <limits.h>
|
||||||
#include <rtems/score/thread.h>
|
#include <rtems/score/thread.h>
|
||||||
#include <rtems/score/threadq.h>
|
#include <rtems/score/threadq.h>
|
||||||
#include <rtems/score/priority.h>
|
#include <rtems/score/priority.h>
|
||||||
@@ -76,11 +77,10 @@ typedef enum {
|
|||||||
* NOTE: All other values are message priorities. Numerically smaller
|
* NOTE: All other values are message priorities. Numerically smaller
|
||||||
* priorities indicate higher priority messages.
|
* priorities indicate higher priority messages.
|
||||||
*
|
*
|
||||||
* XXX these constants should be changed to be compiler dependent.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define CORE_MESSAGE_QUEUE_SEND_REQUEST 0x7fffffff
|
#define CORE_MESSAGE_QUEUE_SEND_REQUEST INT_MAX
|
||||||
#define CORE_MESSAGE_QUEUE_URGENT_REQUEST -(0x7fffffff)
|
#define CORE_MESSAGE_QUEUE_URGENT_REQUEST INT_MIN
|
||||||
|
|
||||||
typedef int CORE_message_queue_Submit_types;
|
typedef int CORE_message_queue_Submit_types;
|
||||||
|
|
||||||
@@ -256,6 +256,7 @@ void _CORE_message_queue_Seize(
|
|||||||
void *buffer,
|
void *buffer,
|
||||||
unsigned32 *size,
|
unsigned32 *size,
|
||||||
boolean wait,
|
boolean wait,
|
||||||
|
CORE_message_queue_Submit_types *priority,
|
||||||
Watchdog_Interval timeout
|
Watchdog_Interval timeout
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user