Fawkes API
Fawkes Development Version
|
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 "
void remove_ext_timesource(TimeSource *ts=0)
Remove external time source.
Thread cannot be initialized.
const char * name() const
Get name of thread.
virtual void init(Thread *thread)
Initialize thread.
void append(const char *format,...)
Append messages to the message list.
Aspect initializer/finalizer base class.
virtual void finalize(Thread *thread)
Finalize thread.
Fawkes library namespace.
void register_ext_timesource(TimeSource *ts, bool make_default=false)
Register an external time source.
TimeSource * get_timesource() const
Get time source.
TimeSourceAspectIniFin(Clock *clock)
Constructor.
Thread class encapsulation of pthreads.
Thread cannot be finalized.
Thread aspect that allows to provide a time source to the Fawkes clock.
This is supposed to be the central clock in Fawkes.
Base class for exceptions in Fawkes.