#include <AP_ThreadQueue.h>
Inherits std::queue<_Ty>.
Public Member Functions | |
AP_ThreadQueueBase (void) | |
AP_Bool | Create (void) |
void | Destroy (void) |
AP_Bool | Get (_Ty &e) |
AP_Bool | Put (const _Ty &e) |
AP_Bool | valid (void) const |
virtual | ~AP_ThreadQueueBase (void) |
Private Member Functions | |
void | postGet (void) |
void | postPut (void) |
AP_Bool | waitGet (void) |
AP_Bool | waitPut (void) |
Private Attributes | |
AP_ThreadCriticalSection | _m_critical |
AP_Uint32 | _m_max |
AP_ThreadSemaphore | _m_semaphore_get |
AP_ThreadSemaphore | _m_semaphore_put |
AP_Bool | _m_valid |
AP_ThreadQueueBase | ( | void | ) | [inline] |
virtual ~AP_ThreadQueueBase | ( | void | ) | [inline, virtual] |
AP_Bool Create | ( | void | ) | [inline] |
void Destroy | ( | void | ) | [inline] |
AP_Bool Get | ( | _Ty & | e | ) | [inline] |
void postGet | ( | void | ) | [private] |
void postPut | ( | void | ) | [private] |
AP_Bool Put | ( | const _Ty & | e | ) | [inline] |
AP_Bool valid | ( | void | ) | const [inline] |
AP_Bool waitGet | ( | void | ) | [private] |
AP_Bool waitPut | ( | void | ) | [private] |
AP_ThreadCriticalSection _m_critical [private] |
AP_ThreadSemaphore _m_semaphore_get [private] |
AP_ThreadSemaphore _m_semaphore_put [private] |