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 */
SEM
struct SEM SEM
Definition:
sem.h:15
semCreate
SEM * semCreate(int initVal)
Creates a new semaphore.
semDestroy
void semDestroy(SEM *sem)
Destroys a semaphore and frees all associated resources.
P
void P(SEM *sem)
P-operation.
V
void V(SEM *sem)
V-operation.
Generated on Mon Jun 27 2022 10:15:46 for My Project by
1.9.1