22#ifndef INCLUDED_GR_TPB_DETAIL_H
23#define INCLUDED_GR_TPB_DETAIL_H
45 tpb_detail() : input_changed(false), output_changed(false) {}
63 input_cond.notify_one();
64 output_changed =
true;
65 output_cond.notify_one();
72 input_changed =
false;
73 output_changed =
false;
78 void set_input_changed()
82 input_cond.notify_one();
86 void set_output_changed()
89 output_changed =
true;
90 output_cond.notify_one();
Implementation details to support the signal processing abstraction.
Definition block_detail.h:45
#define GR_RUNTIME_API
Definition gnuradio-runtime/include/gnuradio/api.h:30
boost::mutex mutex
Definition thread.h:48
boost::unique_lock< boost::mutex > scoped_lock
Definition thread.h:49
boost::condition_variable condition_variable
Definition thread.h:50
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition basic_block.h:46
used by thread-per-block scheduler
Definition tpb_detail.h:37
tpb_detail()
Definition tpb_detail.h:45
void notify_downstream(block_detail *d)
Called by us to tell all our downstream blocks that their input may have changed.
void clear_changed()
Called by us.
Definition tpb_detail.h:69
void notify_neighbors(block_detail *d)
Called by us to notify both upstream and downstream.
gr::thread::mutex mutex
Definition tpb_detail.h:38
bool output_changed
Definition tpb_detail.h:41
gr::thread::condition_variable input_cond
Definition tpb_detail.h:40
bool input_changed
Definition tpb_detail.h:39
void notify_upstream(block_detail *d)
Called by us to tell all our upstream blocks that their output may have changed.
void notify_msg()
Called by pmt msg posters.
Definition tpb_detail.h:59
gr::thread::condition_variable output_cond
Definition tpb_detail.h:42