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
semDestroy
void semDestroy(SEM *sem)
Destroys a semaphore and frees all associated resources.
P
void P(SEM *sem)
P-operation.
semCreate
SEM * semCreate(int initVal)
Creates a new semaphore.
V
void V(SEM *sem)
V-operation.
Generated on Mon Jul 8 2024 14:04:40 for jbuffer by
1.9.4