Fawkes API
Fawkes Development Version
|
23 #ifndef _FIREVISION_APPS_BASE_AQT_VISION_THREADS_H_
24 #define _FIREVISION_APPS_BASE_AQT_VISION_THREADS_H_
26 #include <core/threading/thread_list.h>
27 #include <utils/time/time.h>
37 class FvAquisitionThread;
42 friend FvAquisitionThread;
70 std::unique_ptr<fawkes::Barrier> cyclic_barrier;
bool has_waiting_thread(fawkes::Thread *t)
Check if the given waiting thread is registered.
~FvAqtVisionThreads()
Destructor.
bool has_cont_thread()
Check if there is at least one continuous thread.
void remove_waiting_thread(fawkes::Thread *thread)
Remove waiting thread.
bool empty()
Check if there is no thread at all.
void remove_thread(fawkes::Thread *thread)
Remove a thread.
FvAqtVisionThreads(fawkes::Clock *clock)
Constructor.
void set_prepfin_hold(bool hold)
Set prepfin hold fo cyclic threads.
void add_waiting_thread(fawkes::Thread *thread)
Add a thread in waiting state.
void set_thread_running(fawkes::Thread *thread)
Mark the thread as running.
bool has_cyclic_thread()
Check if there is at least one cyclic thread.
float empty_time()
Get the empty time.
void wakeup_and_wait_cyclic_threads()
Wakeup and wait for all cyclic threads.