#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 |
AP_ThreadSemaphore | ( | const AP_Sint32 | value = 0 |
) |
Inline.
~AP_ThreadSemaphore | ( | void | ) | [virtual] |
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.
sem_t _m_semaphore [private] |