Added support for threads restart if config changed.
This commit is contained in:
parent
871bc3e180
commit
f590cf58fb
12 changed files with 105 additions and 62 deletions
|
@ -29,6 +29,7 @@
|
|||
#include <vector>
|
||||
|
||||
|
||||
#include "base/kernel/interfaces/IBaseListener.h"
|
||||
#include "base/kernel/interfaces/ITimerListener.h"
|
||||
|
||||
|
||||
|
@ -41,7 +42,7 @@ class MinerPrivate;
|
|||
class IBackend;
|
||||
|
||||
|
||||
class Miner : public ITimerListener
|
||||
class Miner : public ITimerListener, public IBaseListener
|
||||
{
|
||||
public:
|
||||
Miner(Controller *controller);
|
||||
|
@ -57,6 +58,7 @@ public:
|
|||
void stop();
|
||||
|
||||
protected:
|
||||
void onConfigChanged(Config *config, Config *previousConfig) override;
|
||||
void onTimer(const Timer *timer) override;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue