mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-12-02 12:33:56 +01:00
daemon mode feature
This commit is contained in:
+3
-3
@@ -19,8 +19,7 @@ public:
|
||||
return oInst;
|
||||
};
|
||||
|
||||
void ex_start() { my_thd = new std::thread(&executor::ex_main, this); }
|
||||
void ex_main();
|
||||
void ex_start(bool daemon) { daemon ? ex_main() : std::thread(&executor::ex_main, this).detach(); }
|
||||
|
||||
void get_http_report(ex_event_name ev_id, std::string& data);
|
||||
|
||||
@@ -53,7 +52,6 @@ private:
|
||||
|
||||
telemetry* telem;
|
||||
std::vector<minethd*>* pvThreads;
|
||||
std::thread* my_thd;
|
||||
|
||||
size_t current_pool_id;
|
||||
|
||||
@@ -67,6 +65,8 @@ private:
|
||||
executor();
|
||||
static executor* oInst;
|
||||
|
||||
void ex_main();
|
||||
|
||||
void ex_clock_thd();
|
||||
void pool_connect(jpsock* pool);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user