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_;
Fawkes aspect base class.
Thread aspect to acces to SyncPoints Give this aspect to your thread to manage SyncPoints,...
void init_SyncPointAspect(Thread *thread, SyncPointManager *syncpoint_manager)
Init SyncPoint aspect.
void pre_loop(Thread *thread)
Wait for the input syncpoint before loop()
void finalize_SyncPointAspect(Thread *thread, SyncPointManager *syncpoint_manager)
Finalize SyncPoint aspect.
void post_loop(Thread *thread)
Emit the output syncpoint after loop()
SyncPointAspect(SyncPoint::WakeupType type_in, std::string identifier_in, std::string identifier_out="")
Constructor.
virtual ~SyncPointAspect()
Destructor.
This class gives access to SyncPoints.
WakeupType
Type to define when a thread wakes up after waiting for a SyncPoint.
Thread loop listener interface.
Thread class encapsulation of pthreads.
Fawkes library namespace.