My Project
sem.h
Go to the documentation of this file.
1 
10 #ifndef SEM_H
11 #define SEM_H
12 
13 
15 typedef struct SEM SEM;
16 
31 SEM *semCreate(int initVal);
32 
38 void semDestroy(SEM *sem);
39 
49 void P(SEM *sem);
50 
59 void V(SEM *sem);
60 
61 
62 #endif /* SEM_H */
struct SEM SEM
Definition: sem.h:15
SEM * semCreate(int initVal)
Creates a new semaphore.
void semDestroy(SEM *sem)
Destroys a semaphore and frees all associated resources.
void P(SEM *sem)
P-operation.
void V(SEM *sem)
V-operation.