gr::messages::msg_queue
gnuradio/messages/msg_queue.h
gr::thread::mutex gr::thread::mutex gr::messages::msg_queue::d_mutex d_mutex gr::messages::msg_queue::d_mutex
gr::thread::condition_variable gr::thread::condition_variable gr::messages::msg_queue::d_not_empty d_not_empty gr::messages::msg_queue::d_not_empty
gr::thread::condition_variable gr::thread::condition_variable gr::messages::msg_queue::d_not_full d_not_full gr::messages::msg_queue::d_not_full
unsigned int unsigned int gr::messages::msg_queue::d_limit d_limit gr::messages::msg_queue::d_limit
std::deque< pmt::pmt_t > std::deque<pmt::pmt_t> gr::messages::msg_queue::d_msgs d_msgs gr::messages::msg_queue::d_msgs
gr::messages::msg_queue::msg_queue
(unsigned int limit)
msg_queue
gr::messages::msg_queue::msg_queue
unsigned int limit
limit
gr::messages::msg_queue::~msg_queue
()
~msg_queue
gr::messages::msg_queue::~msg_queue
void void gr::messages::msg_queue::insert_tail (pmt::pmt_t msg) insert_tail gr::messages::msg_queue::insert_tail pmt::pmt_t msg

Insert message at tail of queue.

msg

message

Block if queue if full.
pmt::pmt_t pmt::pmt_t gr::messages::msg_queue::delete_head () delete_head gr::messages::msg_queue::delete_head

Delete message from head of queue and return it. Block if no message is available.

pmt::pmt_t pmt::pmt_t gr::messages::msg_queue::delete_head_nowait () delete_head_nowait gr::messages::msg_queue::delete_head_nowait

If there's a message in the q, delete it and return it. If no message is available, return pmt::pmt_t().

void void gr::messages::msg_queue::flush () flush gr::messages::msg_queue::flush

Delete all messages from the queue.

bool bool gr::messages::msg_queue::empty_p () const empty_p gr::messages::msg_queue::empty_p

is the queue empty?

bool bool gr::messages::msg_queue::full_p () const full_p gr::messages::msg_queue::full_p

is the queue full?

count
unsigned int unsigned int gr::messages::msg_queue::count () const count gr::messages::msg_queue::count

return number of messages in queue

full_p
unsigned int unsigned int gr::messages::msg_queue::limit () const limit gr::messages::msg_queue::limit

return limit on number of message in queue. 0 -> unbounded

msg_queue

thread-safe message queue

- gr::messages::msg_queue
  count
- gr::messages::msg_queue
  d_limit
- gr::messages::msg_queue
  d_msgs
- gr::messages::msg_queue
  d_mutex
- gr::messages::msg_queue
  d_not_empty
- gr::messages::msg_queue
  d_not_full
- gr::messages::msg_queue
  delete_head
- gr::messages::msg_queue
  delete_head_nowait
- gr::messages::msg_queue
  empty_p
- gr::messages::msg_queue
  flush
- gr::messages::msg_queue
  full_p
- gr::messages::msg_queue
  insert_tail
- gr::messages::msg_queue
  limit
- gr::messages::msg_queue
  msg_queue
- gr::messages::msg_queue
  ~msg_queue