Debian Codegraph @

modules/libcom/src/osi/os/RTEMS-posix/osdMessageQueue.h

raw
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 * [email protected]
13 * 630 252 4793
14 */
15
16 /*
17 * Very thin shims around RTEMS routines
18 */
19 #include <rtems.h>
20 #include <mqueue.h>
21
22 struct epicsMessageQueueOSD {
23 mqd_t id;
24 char name[24];
25 };
26 #define epicsMessageQueueSend(q,m,l) (mq_send((q)->id, (const char*)(m), (l), 0))
27 #define epicsMessageQueueReceive(q,m,s) (mq_receive((q)->id, (char*)(m), (s), NULL))
28