Commit f678997c authored by Seblu's avatar Seblu

definition de la class cron

appel de scheduleur start et stop au bon moment
parent 4736ef93
......@@ -18,3 +18,11 @@
#include "sls.hh"
#include "cron.hh"
void Cron::start() {
}
void Cron::stop() {
}
......@@ -19,4 +19,14 @@
#ifndef CRON_HH
# define CRON_HH
class Cron {
public:
void start();
void stop();
protected:
private:
};
#endif
......@@ -19,6 +19,7 @@
#include "sls.hh"
#include "option.hh"
#include "database.hh"
#include "cron.hh"
#include "server.hh"
#include "error.hh"
......@@ -32,7 +33,7 @@
Option O;
Database D;
Server S;
// Cron C
Cron C;
int main(int argc, char *argv[])
{
......@@ -79,12 +80,15 @@ int main(int argc, char *argv[])
D.open(O.database);
// Start time manager
//C.start();
C.start();
// start network
S.start();
S.listen(O.maxconn);
// stop scheduler
C.stop();
// Close DB
D.close();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment