-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsem_util.h
executable file
·35 lines (33 loc) · 924 Bytes
/
sem_util.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* ===========================================================================
* @file sem_util.h
*
* @path $apps/components/utils/inc
*
* @desc This is the communication interface of semaphore manager.
*
* AUTHOR: [email protected]
*
* The code contained herein is licensed under the GNU General Public License.
* You may obtain a copy of the GNU General Public License Version 2 or later
* at the following locations:
*
* http://www.opensource.org/licenses/gpl-license.html
* http://www.gnu.org/copyleft/gpl.html
* ==========================================================================*/
#ifndef __SEM_UTIL_H__
#define __SEM_UTIL_H__
#ifdef __cplusplus
extern "C"{
#endif
/* Semaphores APIs*/
int Sem_init(int key);
int Sem_Getid(int key);
int Sem_delete(int id);
int Sem_release(int id);
int Sem_gain(int id);
int Sem_Pid(int id);
int Sem_GetValue(int id);
#ifdef __cplusplus
}
#endif
#endif