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