32 #include "error_list.h" 43 virtual Error
wait()=0;
44 virtual Error
post()=0;
45 virtual int get()
const=0;
virtual Error post()=0
unlock the semaphore, incrementing the value
static Semaphore * create()
Create a mutex.
Definition: semaphore.cpp:34
virtual Error wait()=0
wait until semaphore has positive value, then decrement and pass
Definition: semaphore.h:37