reactor: auto-initialization hooks

This commit is contained in:
Roland Conybeare 2023-10-11 20:32:18 -04:00
commit daa09aff86
4 changed files with 41 additions and 21 deletions

View file

@ -61,6 +61,9 @@ namespace xo {
*/
void run() { this->run_n(-1); }
protected:
Reactor();
private:
/* control logging verbosity */
log_level loglevel_;

View file

@ -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 */