SURFEX v8.1
General documentation of Surfex
Surfex_Git2
src
LIB
XRD44
support
mpe_locking.c
Go to the documentation of this file.
1
#ifdef VPP
2
3
void
mpe_lock_
(
int
*lockid,
int
*status)
4
{
5
int
LockID = (*lockid) + 1;
6
*status = VPP_SemWait(0,LockID);
7
}
8
9
void
mpe_unlock_
(
int
*lockid,
int
*status)
10
{
11
int
LockID = (*lockid) + 1;
12
*status = VPP_SemPost(0,LockID);
13
}
14
15
#else
16
17
void
mpe_lock_
(
int
*lockid,
int
*status)
18
{
19
*status = 0;
20
}
21
22
void
mpe_unlock_
(
int
*lockid,
int
*status)
23
{
24
*status = 0;
25
}
26
#endif
27
mpe_lock_
void mpe_lock_(int *lockid, int *status)
Definition:
mpe_locking.c:3
mpe_unlock_
void mpe_unlock_(int *lockid, int *status)
Definition:
mpe_locking.c:9
Generated on Tue Jan 16 2018 16:23:22 for SURFEX v8.1 by
1.8.13