thread-safe message queue
More...
#include <gr_msg_queue.h>
List of all members.
Detailed Description
thread-safe message queue
Constructor & Destructor Documentation
gr_msg_queue::gr_msg_queue |
( |
unsigned int |
limit | ) |
|
gr_msg_queue::~gr_msg_queue |
( |
| ) |
|
Member Function Documentation
unsigned int gr_msg_queue::count |
( |
| ) |
const |
|
inline |
return number of messages in queue
Delete message from head of queue and return it. Block if no message is available.
If there's a message in the q, delete it and return it. If no message is available, return 0.
bool gr_msg_queue::empty_p |
( |
| ) |
const |
|
inline |
void gr_msg_queue::flush |
( |
| ) |
|
Delete all messages from the queue.
bool gr_msg_queue::full_p |
( |
| ) |
const |
|
inline |
Generic msg_handler method: insert the message.
Implements gr_msg_handler.
Insert message at tail of queue.
- Parameters:
-
Block if queue if full.
unsigned int gr_msg_queue::limit |
( |
| ) |
const |
|
inline |
return limit on number of message in queue. 0 -> unbounded
The documentation for this class was generated from the following file: