ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Spectre2/Daemon.hpp
(Generate patch)

Comparing Spectre2/Daemon.hpp (file contents):
Revision 429 by douglas, 2005-03-25T18:47:25-08:00 vs.
Revision 430 by douglas, 2005-03-25T19:01:08-08:00

# Line 7 | Line 7
7   #ifndef _Daemon_hpp_
8   #define _Daemon_hpp_
9  
10 < #include "Share.hpp"
10 > #include "Spectre2.hpp"
11  
12   #ifndef MENES_PRAGMA_ONCE
13   #pragma once
# Line 17 | Line 17
17   #include <menes-etl/fnbind.hpp>
18   #include <menes-ext/threadset.hpp>
19  
20 + class Share;
21 +
22   class Daemon
23   {
24   private:
# Line 24 | Line 26 | private:
26          static ext::String secret;
27   #endif
28          const api::Path& config;
27        ext::RedBlackSet<Share> shares;
29          bool running, loaded;
30          _H<api::Thread> thread;
31          int loop();
# Line 34 | Line 35 | private:
35   public:
36          Daemon(const ext::String& config) : config(config), running(true), loaded(false), thread(new api::Thread(etl::BindAll(&Daemon::loop, this))) {}
37          ~Daemon();
38 +        static ext::RedBlackSet<Share> shares;
39          void reload() { loaded = false; }
40          void stop() { running = false; }
41   };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines