jbuffer
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 Dec 5 2022 00:20:08 for jbuffer by
1.9.1