iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages

#include <nrt/Core/Design/Semaphore.H>

A simple semaphore.

See this Wikipedia page for basic information: http://en.wikipedia.org/wiki/Semaphore_%28programming%29

Definition at line 48 of file Semaphore.H.

Public Member Functions

 Semaphore (size_t n=0)
 Create a semaphore with n initial resources.
 
void increment (size_t n)
 Release n resources to the semaphore.
 
void decrement (size_t n)
 Remove n resources from the semaphore, blocking until they are available.
 
size_t count ()
 Get the current count.
 

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