gr::msg_queue
gr::msg_handler
gnuradio/msg_queue.h
std::shared_ptr< msg_queue > std::shared_ptr<msg_queue> gr::msg_queue::sptr sptr gr::msg_queue::sptr
gr::thread::mutex gr::thread::mutex gr::msg_queue::d_mutex d_mutex gr::msg_queue::d_mutex
gr::thread::condition_variable gr::thread::condition_variable gr::msg_queue::d_not_empty d_not_empty gr::msg_queue::d_not_empty
gr::thread::condition_variable gr::thread::condition_variable gr::msg_queue::d_not_full d_not_full gr::msg_queue::d_not_full
message::sptr message::sptr gr::msg_queue::d_head d_head gr::msg_queue::d_head
message::sptr message::sptr gr::msg_queue::d_tail d_tail gr::msg_queue::d_tail
unsigned int unsigned int gr::msg_queue::d_count d_count gr::msg_queue::d_count
unsigned int unsigned int gr::msg_queue::d_limit d_limit gr::msg_queue::d_limit
sptr static sptr gr::msg_queue::make (unsigned int limit=0) make gr::msg_queue::make unsigned int limit 0
gr::msg_queue::msg_queue
(unsigned int limit)
msg_queue
gr::msg_queue::msg_queue
unsigned int limit
gr::msg_queue::~msg_queue
() override
~msg_queue
gr::msg_queue::~msg_queue
void void gr::msg_queue::handle (message::sptr msg) override handle gr::msg_queue::handle handle message::sptr msg

Generic msg_handler method: insert the message.

void void gr::msg_queue::insert_tail (message::sptr msg) insert_tail gr::msg_queue::insert_tail message::sptr msg

Insert message at tail of queue.

msg

message

Block if queue if full.
message::sptr message::sptr gr::msg_queue::delete_head () delete_head gr::msg_queue::delete_head

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

message::sptr message::sptr gr::msg_queue::delete_head_nowait () delete_head_nowait gr::msg_queue::delete_head_nowait

If there's a message in the q, delete it and return it. If no message is available, return 0.

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

Delete all messages from the queue.

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

is the queue empty?

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

is the queue full?

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

return number of messages in queue

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

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

thread-safe message queue

gr::msg_handler
gr::msg_queue
gr::msg_handler
gr::msg_queue
- gr::msg_queue
  count
- gr::msg_queue
  d_count
- gr::msg_queue
  d_head
- gr::msg_queue
  d_limit
- gr::msg_queue
  d_mutex
- gr::msg_queue
  d_not_empty
- gr::msg_queue
  d_not_full
- gr::msg_queue
  d_tail
- gr::msg_queue
  delete_head
- gr::msg_queue
  delete_head_nowait
- gr::msg_queue
  empty_p
- gr::msg_queue
  flush
- gr::msg_queue
  full_p
- gr::msg_queue
  handle
- gr::msg_queue
  insert_tail
- gr::msg_queue
  limit
- gr::msg_queue
  make
- gr::msg_queue
  msg_queue
- gr::msg_queue
  sptr
- gr::msg_queue
  ~msg_handler
- gr::msg_queue
  ~msg_queue