24 #include <aspect/inifins/time_source.h> 25 #include <aspect/time_source.h> 26 #include <core/threading/thread_finalizer.h> 27 #include <utils/time/clock.h> 48 timesource_thread = dynamic_cast<TimeSourceAspect *>(thread);
49 if (timesource_thread == NULL) {
51 "TimeSourceAspect, but RTTI says it " 62 "is already another time provider.");
70 timesource_thread = dynamic_cast<TimeSourceAspect *>(thread);
71 if (timesource_thread == NULL) {
73 "TimeSourceAspect, but RTTI says it " TimeSourceAspectIniFin(Clock *clock)
Constructor.
virtual void init(Thread *thread)
Initialize thread.
Fawkes library namespace.
This is supposed to be the central clock in Fawkes.
Thread class encapsulation of pthreads.
Thread aspect that allows to provide a time source to the Fawkes clock.
TimeSource * get_timesource() const
Get time source.
Thread cannot be initialized.
Base class for exceptions in Fawkes.
const char * name() const
Get name of thread.
virtual void finalize(Thread *thread)
Finalize thread.
void register_ext_timesource(TimeSource *ts, bool make_default=false)
Register an external time source.
Thread cannot be finalized.
void append(const char *format,...)
Append messages to the message list.
void remove_ext_timesource(TimeSource *ts=0)
Remove external time source.
Aspect initializer/finalizer base class.