diff options
author | chai <chaifix@163.com> | 2018-07-23 18:57:50 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-07-23 18:57:50 +0800 |
commit | 128b6dd3e3a803e475ec03493ee26e6b20d7e42b (patch) | |
tree | 2dece2011db239c7ebee2786c9978e5636ea4947 /src/libjin/common/subsystem.h | |
parent | a4c51a4ac6dc263c3ea2cd49afbd3fbad9ccea17 (diff) |
update
Signed-off-by: chai <chaifix@163.com>
Diffstat (limited to 'src/libjin/common/subsystem.h')
-rw-r--r-- | src/libjin/common/subsystem.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libjin/common/subsystem.h b/src/libjin/common/subsystem.h index 55b0f0d..90e8570 100644 --- a/src/libjin/common/subsystem.h +++ b/src/libjin/common/subsystem.h @@ -16,7 +16,7 @@ namespace jin void init(const SettingBase* setting) { - CallOnce(initSystem(setting)); + CALLONCE(initSystem(setting)); } void quit() @@ -26,11 +26,15 @@ namespace jin } protected: + Subsystem() {}; virtual ~Subsystem() {}; + SINGLETON(System); + virtual bool initSystem(const Setting* setting) = 0; virtual void quitSystem() = 0; + }; } |