# | Line 6 | Line 6 | |
---|---|---|
6 | ||
7 | #include "Daemon.hpp" | |
8 | ||
9 | < | Daemon::Daemon() : running(true), loaded(false), thread(new api::Thread(etl::BindAll(&Daemon::loop, this))) {} |
10 | < | |
11 | < | void Daemon::load() |
12 | < | { |
13 | < | api::Cerr << this << ios::NewLine; |
14 | < | |
15 | < | loaded = true; |
16 | < | } |
17 | < | |
18 | < | void Daemon::run() |
9 | > | void Daemon::start() |
10 | { | |
11 | < | api::Cerr << this << ios::NewLine; |
12 | < | |
22 | < | running = false; |
11 | > | running = true; |
12 | > | thread = new api::Thread(etl::BindAll(&Daemon::loop, this)); |
13 | } | |
14 | ||
15 | int Daemon::loop() |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |