This is Unofficial EPICS BASE Doxygen Site
osdMessageQueue.h
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2002 The University of Chicago, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * EPICS BASE Versions 3.13.7
7 * and higher are distributed subject to a Software License Agreement found
8 * in file LICENSE that is included with this distribution.
9 \*************************************************************************/
10 /*
11  * Author W. Eric Norum
12  * norume@aps.anl.gov
13  * 630 252 4793
14  */
15 
16 /*
17  * Very thin shims around RTEMS routines
18  */
19 #include <rtems.h>
20 
21 struct epicsMessageQueueOSD {
22  rtems_id id;
23  unsigned int maxSize;
24  void *localBuf;
25 
26 };
27 #define epicsMessageQueueDestroy(q) (rtems_message_queue_delete((q)->id))
28 
29 #define epicsMessageQueueTrySend(q,m,l) (rtems_message_queue_send((q)->id, (m), (l)) == RTEMS_SUCCESSFUL ? 0 : -1)