Fawkes API
Fawkes Development Version
|
22 #ifndef _ASPECT_SYNCPOINT_H_
23 #define _ASPECT_SYNCPOINT_H_
25 #include <aspect/aspect.h>
26 #include <core/threading/thread_loop_listener.h>
27 #include <syncpoint/syncpoint.h>
28 #include <syncpoint/syncpoint_manager.h>
38 std::string identifier_in,
39 std::string identifier_out =
"");
51 std::string identifier_in_;
52 std::string identifier_out_;
53 bool has_input_syncpoint_;
54 bool has_output_syncpoint_;
WakeupType
Type to define when a thread wakes up after waiting for a SyncPoint.
This class gives access to SyncPoints.
void post_loop(Thread *thread)
Emit the output syncpoint after loop()
Thread loop listener interface.
void finalize_SyncPointAspect(Thread *thread, SyncPointManager *syncpoint_manager)
Finalize SyncPoint aspect.
Fawkes library namespace.
Fawkes aspect base class.
SyncPointAspect(SyncPoint::WakeupType type_in, std::string identifier_in, std::string identifier_out="")
Constructor.
virtual ~SyncPointAspect()
Destructor.
Thread class encapsulation of pthreads.
void init_SyncPointAspect(Thread *thread, SyncPointManager *syncpoint_manager)
Init SyncPoint aspect.
void pre_loop(Thread *thread)
Wait for the input syncpoint before loop()
Thread aspect to acces to SyncPoints Give this aspect to your thread to manage SyncPoints,...