blob: 3278e5093ce2a4f9b798d4712d0baf05a3976730 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef SCHEDULE_H
#define SCHEDULE_H
#include <ev++.h>
class schedule {
private:
void load_config(config * conf);
unsigned int reap_peers_interval;
worker * work;
mysql * db;
site_comm * sc;
uint64_t last_opened_connections;
uint64_t last_request_count;
unsigned int counter;
int next_reap_peers;
public:
schedule(config * conf, worker * worker_obj, mysql * db_obj, site_comm * sc_obj);
void reload_config(config * conf);
void handle(ev::timer &watcher, int events_flags);
unsigned int schedule_interval;
};
#endif
|