jbuffer
Loading...
Searching...
No Matches
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
27
SEM
*
semCreate
(
unsigned
initVal);
28
34
void
semDestroy
(
SEM
*sem);
35
44
void
down
(
SEM
*sem);
45
54
void
up
(
SEM
*sem);
55
56
57
#endif
/* SEM_H */
SEM
struct SEM SEM
Definition
sem.h:15
down
void down(SEM *sem)
Acquire the semaphore.
semDestroy
void semDestroy(SEM *sem)
Destroys a semaphore and frees all associated resources.
semCreate
SEM * semCreate(unsigned initVal)
Creates a new semaphore.
up
void up(SEM *sem)
Release the semaphore.
Generated on Tue Dec 16 2025 17:20:27 for jbuffer by
1.9.8