#include "scheduler.h"
#include "log.h"
class TestTask : public Scheduler::Task
{
virtual boost::posix_time::time_duration start_task()
{
log::debug("This is a message from the test module!");
return boost::posix_time::seconds(5);
}
};
void __attribute__ ((constructor)) init_module(void)
{
Scheduler::manager->add_task(boost::shared_ptr<Scheduler::Task>(new TestTask()),
boost::posix_time::seconds(5));
}