summaryrefslogtreecommitdiff
path: root/lib/element_impl.hpp
diff options
context:
space:
mode:
authorJosh Blum2012-09-11 19:44:43 -0700
committerJosh Blum2012-09-11 19:44:43 -0700
commit80ad579996caebe4150a00b727fcd568730be53f (patch)
treea1b5fdf869ff54e62c703f294af4a2c6a43c7e4b /lib/element_impl.hpp
parent3e820aba9c4ef292508c00b686d54eaca040c200 (diff)
downloadsandhi-80ad579996caebe4150a00b727fcd568730be53f.tar.gz
sandhi-80ad579996caebe4150a00b727fcd568730be53f.tar.bz2
sandhi-80ad579996caebe4150a00b727fcd568730be53f.zip
simplify interruptible_thread use, give it a bound callable object
Diffstat (limited to 'lib/element_impl.hpp')
-rw-r--r--lib/element_impl.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/element_impl.hpp b/lib/element_impl.hpp
index b4f2c1b..a9f272b 100644
--- a/lib/element_impl.hpp
+++ b/lib/element_impl.hpp
@@ -121,6 +121,13 @@ struct ElementImpl
void conclusion(const tsbe::TaskInterface &task_iface, const bool);
void buffer_returner(const size_t index, SBuffer &buffer);
+ //work helpers
+ int work_ret;
+ inline void task_work(void)
+ {
+ this->work_ret = block_ptr->Work(this->input_items, this->output_items);
+ }
+
//is the fg running?
enum
{