Rewritten watch feature.

This commit is contained in:
XMRig
2019-02-15 04:59:20 +07:00
parent 12296d6664
commit 6d161cab8c
19 changed files with 419 additions and 111 deletions

View File

@@ -40,7 +40,7 @@ namespace xmrig {
class ConfigWatcher;
class IConfigCreator;
class IWatcherListener;
class IConfigListener;
class IConfig;
@@ -51,7 +51,7 @@ public:
static bool loadFromJSON(IConfig *config, const char *json);
static bool loadFromJSON(IConfig *config, const rapidjson::Document &doc);
static bool reload(IConfig *oldConfig, const char *json);
static IConfig *load(int argc, char **argv, IConfigCreator *creator, IWatcherListener *listener);
static IConfig *load(int argc, char **argv, IConfigCreator *creator, IConfigListener *listener);
static void release();
static inline bool isDone() { return m_done; }
@@ -66,7 +66,7 @@ private:
static bool m_done;
static ConfigWatcher *m_watcher;
static IConfigCreator *m_creator;
static IWatcherListener *m_listener;
static IConfigListener *m_listener;
};