1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#pragma once #include <atomic> #include "miner_work.h" namespace xmrstak { struct GlobalStates { static void switch_work(miner_work& pWork); static miner_work oGlobalWork; static std::atomic<uint64_t> iGlobalJobNo; static std::atomic<uint64_t> iConsumeCnt; static uint64_t iThreadCount; }; } // namepsace xmrstak