diff options
author | fireice-uk <fireice-uk@users.noreply.github.com> | 2017-11-09 22:43:08 +0000 |
---|---|---|
committer | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-11-09 23:43:08 +0100 |
commit | d35893d926c74893d7c85d1b87b24ffa55744649 (patch) | |
tree | b2c1186e3ad96696592e1572e553514af04048b4 /xmrstak/backend/globalStates.hpp | |
parent | b3237bab587f937e90a2ff0d06aba5e3630a8047 (diff) | |
download | xmr-stak-d35893d926c74893d7c85d1b87b24ffa55744649.zip xmr-stak-d35893d926c74893d7c85d1b87b24ffa55744649.tar.gz |
Multi-pool final version (#90)
* Multi-pool first draft
* Fix wspace from new IDE
* Better TLS error message
* Fix TLS bug
* Don't put dev pool on stats + pool change-back
* bug fixes
* Error message work
* fix win build
* add per-pool nicehash setting
* Fix bugs
* rm debug msg
* Multipool guided setup
* Support TLS and Nicehash in config
* prelim jconf changes
* final multipool changes
* increase default retry_time to 30, fix mac erro
* rm debug dev pool settings
* Fix another source of connect runaway
Diffstat (limited to 'xmrstak/backend/globalStates.hpp')
-rw-r--r-- | xmrstak/backend/globalStates.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmrstak/backend/globalStates.hpp b/xmrstak/backend/globalStates.hpp index 1c28d5c..9fdda2a 100644 --- a/xmrstak/backend/globalStates.hpp +++ b/xmrstak/backend/globalStates.hpp @@ -6,6 +6,7 @@ #include <atomic> +constexpr static size_t invalid_pool_id = (-1); namespace xmrstak { @@ -15,7 +16,7 @@ struct pool_data uint32_t iSavedNonce; size_t pool_id; - pool_data() : iSavedNonce(0), pool_id(0) + pool_data() : iSavedNonce(0), pool_id(invalid_pool_id) { } }; @@ -46,7 +47,7 @@ struct globalStates std::atomic<uint64_t> iConsumeCnt; std::atomic<uint32_t> iGlobalNonce; uint64_t iThreadCount; - size_t pool_id; + size_t pool_id = invalid_pool_id; private: globalStates() : iThreadCount(0) |