This is Unofficial EPICS BASE Doxygen Site
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
osdMutex.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
/* os/vxWorks/osdMutex.h */
11
12
/* Author: Marty Kraimer Date: 25AUG99 */
13
14
#include <vxWorks.h>
15
#include <semLib.h>
16
17
/* If the macro is replaced by inline it is necessary to say
18
static __inline__
19
but then a warning message appears everywhere osdMutex.h is included
20
*/
21
22
#define epicsMutexOsdUnlock(ID) semGive((SEM_ID)(ID))
23
24
#define epicsMutexOsdLock(ID) \
25
(semTake((SEM_ID)(ID),WAIT_FOREVER)==OK ? epicsMutexLockOK : epicsMutexLockError)
modules
libcom
src
osi
os
vxWorks
osdMutex.h
Generated by
1.8.11