24 #include <aspect/inifins/time_source.h> 25 #include <aspect/time_source.h> 26 #include <utils/time/clock.h> 27 #include <core/threading/thread_finalizer.h> 54 if (timesource_thread == NULL) {
56 "TimeSourceAspect, but RTTI says it " 57 "has not. ", thread->
name());
66 "is already another time provider.");
76 if (timesource_thread == NULL) {
78 "TimeSourceAspect, but RTTI says it " 79 "has not. ", thread->
name());
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.