21 #ifndef INCLUDED_GR_TPB_DETAIL_H
22 #define INCLUDED_GR_TPB_DETAIL_H
44 : input_changed(
false), output_changed(
false) { }
57 input_cond.notify_one();
58 output_cond.notify_one();
65 input_changed =
false;
66 output_changed =
false;
72 void set_input_changed()
76 input_cond.notify_one();
80 void set_output_changed()
83 output_changed =
true;
84 output_cond.notify_one();
boost::condition_variable condition_variable
Definition: thread.h:46
used by thread-per-block scheduler
Definition: gr_tpb_detail.h:34
boost::mutex mutex
Definition: thread.h:44
boost::unique_lock< boost::mutex > scoped_lock
Definition: thread.h:45
Implementation details to support the signal processing abstractionThis class contains implementation...
Definition: gr_block_detail.h:41
void clear_changed()
Called by us.
Definition: gr_tpb_detail.h:62
gruel::mutex mutex
Definition: gr_tpb_detail.h:36
gruel::condition_variable output_cond
Definition: gr_tpb_detail.h:40
bool input_changed
Definition: gr_tpb_detail.h:37
#define GR_CORE_API
Definition: gr_core_api.h:30
bool output_changed
Definition: gr_tpb_detail.h:39
#define false
Definition: stdbool.h:33
void notify_msg()
Called by pmt msg posters.
Definition: gr_tpb_detail.h:56
gr_tpb_detail()
Definition: gr_tpb_detail.h:43
gruel::condition_variable input_cond
Definition: gr_tpb_detail.h:38