ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Spectre2/Daemon.cpp
Revision: 407
Committed: 2004-12-30T22:32:13-08:00 (20 years, 5 months ago) by douglas
File size: 350 byte(s)
Log Message:
Worky!

File Contents

# Content
1 // Spectre 2
2 //
3 // Douglas Thrift
4 //
5 // $Id$
6
7 #include "Daemon.hpp"
8
9 void Daemon::wait()
10 {
11 if (!thread.IsEmpty())
12 {
13 thread->Join();
14
15 thread.Clear();
16 }
17 }
18
19 void Daemon::start()
20 {
21 running = true;
22 thread = new api::Thread(etl::BindAll(&Daemon::loop, this));
23 }
24
25 int Daemon::loop()
26 {
27 while (running) if (loaded) run(); else load();
28
29 return 0;
30 }

Properties

Name Value
svn:eol-style native
svn:keywords Id