SURFEX v8.1
General documentation of Surfex
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 
void mpe_lock_(int *lockid, int *status)
Definition: mpe_locking.c:3
void mpe_unlock_(int *lockid, int *status)
Definition: mpe_locking.c:9