Home / Open source / Terimber 2.0
msg_queue< P, C > Class Template Referencepriority message queue
More...
#include <msg_que.h>
List of all members.
Detailed Description
template<size_t P = 3, size_t C = 1024>
class msg_queue< P, C >
priority message queue
Definition at line 43 of file msg_que.h.
Member Enumeration Documentation
template<size_t P = 3, size_t C = 1024>
- Enumerator:
-
PRIORITY |
priority levels |
CAPACITY |
max capacity |
Definition at line 46 of file msg_que.h.
Constructor & Destructor Documentation
template<size_t P, size_t C>
Member Function Documentation
template<size_t P, size_t C>
template<size_t P, size_t C>
bool msg_queue< P, C >::is_block |
( |
|
) |
[inline] |
template<size_t P, size_t C>
template<size_t P, size_t C>
bool msg_queue< P, C >::peek |
( |
|
) |
[inline, protected] |
template<size_t P, size_t C>
bool msg_queue< P, C >::touch |
( |
size_t & |
top_priority |
) |
[inline, protected] |
template<size_t P = 3, size_t C = 1024>
virtual void msg_queue< P, C >::wakeup |
( |
|
) |
[protected, pure virtual] |
template<size_t P, size_t C>
pushes incoming message to the queue
- Parameters:
-
Definition at line 121 of file msg_que.h.
References msg_queue< P, C >::_blocked, msg_queue< P, C >::_check(), msg_queue< P, C >::_mtx_queue, msg_queue< P, C >::_queue, exception::_throw(), msg_queue< P, C >::CAPACITY, list< T >::push_back(), list< T >::size(), and msg_queue< P, C >::wakeup().
template<size_t P, size_t C>
bool msg_queue< P, C >::unblock |
( |
|
) |
[inline, protected] |
template<size_t P, size_t C>
Member Data Documentation
template<size_t P = 3, size_t C = 1024>
template<size_t P = 3, size_t C = 1024>
mutex
Definition at line 100 of file msg_que.h.
Referenced by msg_queue< P, C >::block(), msg_queue< P, C >::is_block(), msg_queue< P, C >::peek(), msg_queue< P, C >::pop(), msg_queue< P, C >::push(), msg_queue< P, C >::touch(), and msg_queue< P, C >::unblock().
template<size_t P = 3, size_t C = 1024>
The documentation for this class was generated from the following file:
|
|