Revision: | 402 |
Committed: | 2004-12-29T22:38:37-08:00 (20 years, 5 months ago) by douglas |
File size: | 265 byte(s) |
Log Message: | It bogles the mind! |
# | User | Rev | Content |
---|---|---|---|
1 | douglas | 402 | // Spectre 2 |
2 | // | ||
3 | // Douglas Thrift | ||
4 | // | ||
5 | // $Id$ | ||
6 | |||
7 | #include "Daemon.hpp" | ||
8 | |||
9 | Daemon::Daemon() : running(true), loaded(false), thread(new api::Thread(etl::BindAll(&Daemon::loop, this))) {} | ||
10 | |||
11 | int Daemon::loop() | ||
12 | { | ||
13 | while (running) if (loaded) run(); else load(); | ||
14 | |||
15 | return 0; | ||
16 | } |
Name | Value |
---|---|
svn:eol-style | native |
svn:keywords | Id |