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