summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Tamara <vtamara@pasosdeJesus.org>2018-04-19 10:07:27 -0500
committerTimothy Pearson <tpearson@raptorengineering.com>2018-06-04 21:07:11 +0000
commit27721514d56650161fbfbf6046f5eae1ab8cd873 (patch)
tree668d183059d7c0ec88471ca72a7657e541105620
parentff6a4342805babb6bb57fbb341263e57de16c672 (diff)
downloadxmr-stak-27721514d56650161fbfbf6046f5eae1ab8cd873.zip
xmr-stak-27721514d56650161fbfbf6046f5eae1ab8cd873.tar.gz
Fixes #1467
-rw-r--r--xmrstak/backend/cpu/minethd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmrstak/backend/cpu/minethd.cpp b/xmrstak/backend/cpu/minethd.cpp
index a6a9e2f..dc89c50 100644
--- a/xmrstak/backend/cpu/minethd.cpp
+++ b/xmrstak/backend/cpu/minethd.cpp
@@ -95,6 +95,7 @@ bool minethd::thd_setaffinity(std::thread::native_handle_type h, uint64_t cpu_id
return pthread_setaffinity_np(h, sizeof(cpuset_t), &mn) == 0;
#elif defined(__OpenBSD__)
printer::inst()->print_msg(L0,"WARNING: thread pinning is not supported under OPENBSD.");
+ return true;
#else
cpu_set_t mn;
CPU_ZERO(&mn);
OpenPOWER on IntegriCloud