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
15typedef struct SEM SEM;
16
27SEM *semCreate(unsigned initVal);
28
34void semDestroy(SEM *sem);
35
44void down(SEM *sem);
45
54void up(SEM *sem);
55
56
57#endif /* SEM_H */
struct SEM SEM
Definition sem.h:15
void down(SEM *sem)
Acquire the semaphore.
void semDestroy(SEM *sem)
Destroys a semaphore and frees all associated resources.
SEM * semCreate(unsigned initVal)
Creates a new semaphore.
void up(SEM *sem)
Release the semaphore.