summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/gras/block.hpp20
-rw-r--r--include/gras/top_block.hpp12
2 files changed, 14 insertions, 18 deletions
diff --git a/include/gras/block.hpp b/include/gras/block.hpp
index c33f7f9..8baecfd 100644
--- a/include/gras/block.hpp
+++ b/include/gras/block.hpp
@@ -204,12 +204,6 @@ struct GRAS_API Block : Element
* Work related routines and fail states
******************************************************************/
- //! Called when the flow graph is started, can overload
- virtual bool start(void);
-
- //! Called when the flow graph is stopped, can overload
- virtual bool stop(void);
-
typedef WorkBufferArray<const void *> InputItems;
typedef WorkBufferArray<void *> OutputItems;
@@ -308,6 +302,20 @@ struct GRAS_API Block : Element
void post_output_buffer(const size_t which_output, const SBuffer &buffer);
/*!
+ * Overload notify_active to get called when block becomes active.
+ * This will be called when the TopBlock start/run API call executes.
+ * The default implementation of notify_active is a NOP.
+ */
+ virtual void notify_active(void);
+
+ /*!
+ * Overload notify_inactive to get called when block becomes inactive.
+ * This will be called when the TopBlock stop/run API call executes.
+ * The default implementation of notify_inactive is a NOP.
+ */
+ virtual void notify_inactive(void);
+
+ /*!
* Overload notify_topology to get called on topological changes.
* Use notify_topology to perform one-time resizing operations
* to avoid a conditional resizing operation inside the work().
diff --git a/include/gras/top_block.hpp b/include/gras/top_block.hpp
index 2f0dc87..fadcefa 100644
--- a/include/gras/top_block.hpp
+++ b/include/gras/top_block.hpp
@@ -77,18 +77,6 @@ struct GRAS_API TopBlock : HierBlock
*/
virtual bool wait(const double timeout);
- //! Deprecated
- void start(const size_t max_items);
-
- //! Deprecated
- void run(const size_t max_items);
-
- //! Deprecated
- int max_noutput_items(void) const;
-
- //! Deprecated
- void set_max_noutput_items(int max_items);
-
};
} //namespace gras