Public Types | Public Member Functions | Private Attributes
mt::semaphore Class Reference

#include <semaphore.h>

List of all members.

Public Types

typedef void base_type
typedef semaphore this_type

Public Member Functions

void acquire (int n=1)
int available ()
void post (void)
void release (int n=1)
 semaphore (void)
 semaphore (int value)
bool tryAcquire (int n=1)
bool trywait (void)
void wait (void)
 ~semaphore (void)

Private Attributes

sem_t s

Detailed Description

Definition at line 12 of file semaphore.h.


Member Typedef Documentation

Definition at line 19 of file semaphore.h.

Definition at line 18 of file semaphore.h.


Constructor & Destructor Documentation

mt::semaphore::semaphore ( void  ) [inline]

Definition at line 21 of file semaphore.h.

mt::semaphore::semaphore ( int  value) [inline]

Definition at line 26 of file semaphore.h.

mt::semaphore::~semaphore ( void  ) [inline]

Definition at line 31 of file semaphore.h.


Member Function Documentation

void mt::semaphore::acquire ( int  n = 1) [inline]

Definition at line 68 of file semaphore.h.

int mt::semaphore::available ( ) [inline]

Definition at line 82 of file semaphore.h.

void mt::semaphore::post ( void  ) [inline]

Definition at line 36 of file semaphore.h.

void mt::semaphore::release ( int  n = 1) [inline]

Definition at line 61 of file semaphore.h.

bool mt::semaphore::tryAcquire ( int  n = 1) [inline]

Definition at line 75 of file semaphore.h.

bool mt::semaphore::trywait ( void  ) [inline]

Definition at line 53 of file semaphore.h.

void mt::semaphore::wait ( void  ) [inline]

Definition at line 48 of file semaphore.h.


Member Data Documentation

sem_t mt::semaphore::s [private]

Definition at line 91 of file semaphore.h.


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


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:41:08