GNU Radio 3.4.0 C++ API
gr_tpb_detail Struct Reference

used by thread-per-block scheduler More...

#include <gr_tpb_detail.h>

List of all members.

Public Member Functions

 gr_tpb_detail ()
void notify_upstream (gr_block_detail *d)
 Called by us to tell all our upstream blocks that their output may have changed.
void notify_downstream (gr_block_detail *d)
 Called by us to tell all our downstream blocks that their input may have changed.
void notify_neighbors (gr_block_detail *d)
 Called by us to notify both upstream and downstream.
void clear_changed ()
 Called by us.
bool empty_p () const
 is the queue empty?
void insert_tail (pmt::pmt_t msg)
pmt::pmt_t delete_head_nowait ()
pmt::pmt_t delete_head_nowait_already_holding_mutex ()

Public Attributes

gruel::mutex mutex
bool input_changed
gruel::condition_variable input_cond
bool output_changed
gruel::condition_variable output_cond

Detailed Description

used by thread-per-block scheduler


Constructor & Destructor Documentation

gr_tpb_detail::gr_tpb_detail ( ) [inline]

Member Function Documentation

void gr_tpb_detail::clear_changed ( ) [inline]

Called by us.

References input_changed, mutex, and output_changed.

pmt::pmt_t gr_tpb_detail::delete_head_nowait ( )
Returns:
returns pmt at head of queue or pmt_t() if empty.
pmt::pmt_t gr_tpb_detail::delete_head_nowait_already_holding_mutex ( )
Returns:
returns pmt at head of queue or pmt_t() if empty. Caller must already be holding the mutex
bool gr_tpb_detail::empty_p ( ) const [inline]

is the queue empty?

void gr_tpb_detail::insert_tail ( pmt::pmt_t  msg)
void gr_tpb_detail::notify_downstream ( gr_block_detail d)

Called by us to tell all our downstream blocks that their input may have changed.

void gr_tpb_detail::notify_neighbors ( gr_block_detail d)

Called by us to notify both upstream and downstream.

void gr_tpb_detail::notify_upstream ( gr_block_detail d)

Called by us to tell all our upstream blocks that their output may have changed.


Member Data Documentation

gruel::condition_variable gr_tpb_detail::input_cond
gruel::mutex gr_tpb_detail::mutex

Referenced by clear_changed().

gruel::condition_variable gr_tpb_detail::output_cond

The documentation for this struct was generated from the following file: