AP_ThreadSemaphore Class Reference

#include <AP_ThreadSemaphore.h>


Public Member Functions

 AP_ThreadSemaphore (const AP_Sint32 value=0)
 Inline.
void create (const AP_Sint32 value=0)
void destroy (void)
 Not inline.
void post (void)
AP_Bool valid (void) const
AP_Sint32 value (void)
AP_Bool wait (void)
 WARNING: seems the function sem_timedwait is often corrupted in some POSIX implementation. For example it works very bad in glibc version 2.9 provided from Ubuntu 9.04. So we don't implement this function. We'll use normal sem_wait ignoring timeout parameter.
virtual ~AP_ThreadSemaphore (void)

Private Attributes

sem_t _m_semaphore
AP_Bool _m_valid


Constructor & Destructor Documentation

AP_ThreadSemaphore ( const AP_Sint32  value = 0  ) 

Inline.

~AP_ThreadSemaphore ( void   )  [virtual]


Member Function Documentation

void create ( const AP_Sint32  value = 0  ) 

void destroy ( void   ) 

Not inline.

void post ( void   ) 

AP_Bool valid ( void   )  const [inline]

AP_Sint32 value ( void   ) 

AP_Bool wait ( void   ) 

WARNING: seems the function sem_timedwait is often corrupted in some POSIX implementation. For example it works very bad in glibc version 2.9 provided from Ubuntu 9.04. So we don't implement this function. We'll use normal sem_wait ignoring timeout parameter.


Field Documentation

sem_t _m_semaphore [private]

AP_Bool _m_valid [private]


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

Generated on Fri Mar 5 16:50:45 2010 for CarLinO by  doxygen 1.5.8