Public Member Functions | Static Public Member Functions | Static Protected Attributes | List of all members
Semaphore Class Referenceabstract

#include <semaphore.h>

Inheritance diagram for Semaphore:
SemaphoreDummy

Public Member Functions

virtual Error wait ()=0
 wait until semaphore has positive value, then decrement and pass
 
virtual Error post ()=0
 unlock the semaphore, incrementing the value
 
virtual int get () const =0
 get semaphore value
 

Static Public Member Functions

static Semaphorecreate ()
 Create a mutex.
 

Static Protected Attributes

static Semaphore *(* create_func )()
 

Detailed Description

Author
Juan Linietsky reduz.nosp@m.io@g.nosp@m.mail..nosp@m.com

The documentation for this class was generated from the following files: