summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend/cpu/minethd.hpp
diff options
context:
space:
mode:
authorfireice-uk <fireice-uk@users.noreply.github.com>2017-10-12 12:52:50 +0100
committerfireice-uk <fireice-uk@users.noreply.github.com>2017-10-12 12:52:50 +0100
commit8bbdd45b9e63f6622ee2eac8f9dd0cd881a78aa4 (patch)
tree405f14b961e249a755d1682477441047f54a3f8b /xmrstak/backend/cpu/minethd.hpp
parent73482f3065af13de1140308f65371d059df7decf (diff)
downloadxmr-stak-8bbdd45b9e63f6622ee2eac8f9dd0cd881a78aa4.zip
xmr-stak-8bbdd45b9e63f6622ee2eac8f9dd0cd881a78aa4.tar.gz
Affinity - fix C
Diffstat (limited to 'xmrstak/backend/cpu/minethd.hpp')
-rw-r--r--xmrstak/backend/cpu/minethd.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmrstak/backend/cpu/minethd.hpp b/xmrstak/backend/cpu/minethd.hpp
index ad75d07..c023fcb 100644
--- a/xmrstak/backend/cpu/minethd.hpp
+++ b/xmrstak/backend/cpu/minethd.hpp
@@ -8,7 +8,7 @@
#include <thread>
#include <vector>
#include <atomic>
-#include <mutex>
+#include <future>
namespace xmrstak
{
@@ -46,7 +46,7 @@ private:
miner_work oWork;
void pin_thd_affinity();
- std::mutex work_thd_mtx;
+ std::promise<void> order_fix;
std::thread oWorkThd;
int64_t affinity;
OpenPOWER on IntegriCloud