reactor: auto-initialization hooks
This commit is contained in:
parent
6fd18236eb
commit
daa09aff86
4 changed files with 41 additions and 21 deletions
|
|
@ -61,6 +61,9 @@ namespace xo {
|
|||
*/
|
||||
void run() { this->run_n(-1); }
|
||||
|
||||
protected:
|
||||
Reactor();
|
||||
|
||||
private:
|
||||
/* control logging verbosity */
|
||||
log_level loglevel_;
|
||||
|
|
|
|||
|
|
@ -8,13 +8,13 @@
|
|||
#include "xo/subsys/Subsystem.hpp"
|
||||
|
||||
namespace xo {
|
||||
enum S_reactor_tag {};
|
||||
enum S_reactor_tag {};
|
||||
|
||||
template<>
|
||||
struct InitSubsys<S_reactor_tag> {
|
||||
static void init();
|
||||
static InitEvidence require();
|
||||
};
|
||||
template<>
|
||||
struct InitSubsys<S_reactor_tag> {
|
||||
static void init();
|
||||
static InitEvidence require();
|
||||
};
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end init_reactor.hpp */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue