summaryrefslogtreecommitdiffstats
path: root/backend/GlobalStates.hpp
blob: 293009dd90f032b59f9dc44a4f49acc43d345b53 (plain)
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
OpenPOWER on IntegriCloud