summaryrefslogtreecommitdiffstats
path: root/executor.h
diff options
context:
space:
mode:
authorfireice-uk <fireice-uk@users.noreply.github.com>2017-05-26 19:36:38 +0100
committerfireice-uk <fireice-uk@users.noreply.github.com>2017-05-26 19:36:38 +0100
commit83762e5bedfef2d0aa25552bc8aeae7afb8f2b5e (patch)
treeefc13f5a9fb71781f464fe4bc5d67e3604e9c000 /executor.h
parent07ea73dbc3e71eb68ed6b5c10c6fd83f2357c9f1 (diff)
downloadxmr-stak-83762e5bedfef2d0aa25552bc8aeae7afb8f2b5e.zip
xmr-stak-83762e5bedfef2d0aa25552bc8aeae7afb8f2b5e.tar.gz
daemon mode feature
Diffstat (limited to 'executor.h')
-rw-r--r--executor.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/executor.h b/executor.h
index d900b41..74efec0 100644
--- a/executor.h
+++ b/executor.h
@@ -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);
OpenPOWER on IntegriCloud