wangzhengquan
2020-07-09 91f003aac4c95f4d2a2fc0782c9bea9d484b6919
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef PCSEM_H
#define PCSEM_H  
 
#include "usg_common.h"
#include "usg_typedef.h"
 
namespace SemUtil {
 
    int get(key_t key, unsigned int value);
    int dec(int semId);
    int dec_nowait(int semId);
    int dec_timeout(int semId, struct timespec * timeout);
    int inc(int semId);
    void remove(int semid);
 
}
 
#endif