thread-safe message queue
More...
#include <gnuradio/msg_queue.h>
thread-safe message queue
◆ sptr
◆ msg_queue()
gr::msg_queue::msg_queue |
( |
unsigned int |
limit | ) |
|
◆ ~msg_queue()
gr::msg_queue::~msg_queue |
( |
| ) |
|
|
override |
◆ count()
unsigned int gr::msg_queue::count |
( |
| ) |
const |
|
inline |
return number of messages in queue
◆ delete_head()
Delete message from head of queue and return it. Block if no message is available.
◆ delete_head_nowait()
If there's a message in the q, delete it and return it. If no message is available, return 0.
◆ empty_p()
bool gr::msg_queue::empty_p |
( |
| ) |
const |
|
inline |
◆ flush()
void gr::msg_queue::flush |
( |
| ) |
|
Delete all messages from the queue.
◆ full_p()
bool gr::msg_queue::full_p |
( |
| ) |
const |
|
inline |
◆ handle()
◆ insert_tail()
Insert message at tail of queue.
- Parameters
-
Block if queue if full.
◆ limit()
unsigned int gr::msg_queue::limit |
( |
| ) |
const |
|
inline |
return limit on number of message in queue. 0 -> unbounded
◆ make()
static sptr gr::msg_queue::make |
( |
unsigned int |
limit = 0 | ) |
|
|
static |
The documentation for this class was generated from the following file: