This is Unofficial EPICS BASE Doxygen Site
osdEvent.h
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2011 UChicago Argonne LLC, 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 is distributed subject to a Software License Agreement found
7 * in file LICENSE that is included with this distribution.
8 \*************************************************************************/
9 /* os/vxWorks/osdEvent.h */
10 
11 /* Author: Marty Kraimer Date: 25AUG99 */
12 
13 #include <vxWorks.h>
14 #include <semLib.h>
15 
16 #define epicsEventTrigger(ID) \
17  (semGive((SEM_ID)(ID)) == OK ? epicsEventOK : epicsEventError)
18 
19 #define epicsEventWait(ID) \
20  (semTake((SEM_ID)(ID), WAIT_FOREVER) == OK ? epicsEventOK : epicsEventError)