diff options
author | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-10-26 23:09:14 +0200 |
---|---|---|
committer | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-10-26 23:09:14 +0200 |
commit | b685c90fc2d9d76017565d84a73b92a64ca4843c (patch) | |
tree | b4cdf2191c4e11f00af708569cacacc36223dddc /xmrstak/backend/nvidia/minethd.hpp | |
parent | 712f7b7bdb02d05aaffc5f70817aeb1edd17a2b3 (diff) | |
download | xmr-stak-b685c90fc2d9d76017565d84a73b92a64ca4843c.zip xmr-stak-b685c90fc2d9d76017565d84a73b92a64ca4843c.tar.gz |
thread affinity for non cpu backends
This is a follow up of #43 and use the some mechanism to set the thread affinity for
non cpu backends correct.
- use cpu affinity workflow for nvidia and amd
- cpu: move messages of thread spawning before thread creation
Diffstat (limited to 'xmrstak/backend/nvidia/minethd.hpp')
-rw-r--r-- | xmrstak/backend/nvidia/minethd.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmrstak/backend/nvidia/minethd.hpp b/xmrstak/backend/nvidia/minethd.hpp index 657ee6a..d1fce40 100644 --- a/xmrstak/backend/nvidia/minethd.hpp +++ b/xmrstak/backend/nvidia/minethd.hpp @@ -12,6 +12,7 @@ #include <thread> #include <atomic> #include <vector> +#include <future> namespace xmrstak @@ -43,7 +44,10 @@ private: static miner_work oGlobalWork; miner_work oWork; + std::promise<void> order_fix; + std::thread oWorkThd; + int64_t affinity; nvid_ctx ctx; |