5 #ifndef __ctrlplane__task_trigger__
6 #define __ctrlplane__task_trigger__
8 #include <boost/function.hpp>
9 #include <tbb/atomic.h>
20 bool current =
disabled_.fetch_and_store(
true);
24 bool current =
disabled_.fetch_and_store(
false);
34 bool current =
deferred_.fetch_and_store(
true);
38 bool current =
deferred_.fetch_and_store(
false);
tbb::atomic< bool > deferred_
tbb::atomic< bool > trigger_
boost::function< bool()> FunctionPtr
tbb::atomic< bool > disabled_
TaskTrigger(const FunctionPtr &func, int task_id, int task_instance)