summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Quesnelle <jquesnelle@gmail.com>2017-01-05 01:48:28 -0500
committerJeffrey Quesnelle <jquesnelle@gmail.com>2017-01-05 01:48:28 -0500
commit51c4956110171c43fd77a997c20dc2bc52aad6e4 (patch)
treeaa221247b856663f9f49e1955d781212e4acd5c3
parentf9b9c0c09d7c727ef4ce57e85d8f256daff75f0c (diff)
downloadxmr-stak-51c4956110171c43fd77a997c20dc2bc52aad6e4.zip
xmr-stak-51c4956110171c43fd77a997c20dc2bc52aad6e4.tar.gz
more whitespace fuss
-rw-r--r--minethd.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/minethd.cpp b/minethd.cpp
index b63035d..e636d4b 100644
--- a/minethd.cpp
+++ b/minethd.cpp
@@ -22,6 +22,7 @@
#ifdef _WIN32
#include <windows.h>
#include <intrin.h>
+
void thd_setaffinity(std::thread::native_handle_type h, uint64_t cpu_id)
{
SetThreadAffinityMask(h, 1 << cpu_id);
@@ -30,6 +31,7 @@ void thd_setaffinity(std::thread::native_handle_type h, uint64_t cpu_id)
#else
#include <pthread.h>
#include <cpuid.h>
+
void thd_setaffinity(std::thread::native_handle_type h, uint64_t cpu_id)
{
cpu_set_t mn;
@@ -330,8 +332,8 @@ void minethd::work_main()
if (oWork.bStall)
{
/* We are stalled here because the executor didn't find a job for us yet,
- either because of network latency, or a socket problem. Since we are
- raison d'etre of this software it us sensible to just wait until we have something*/
+ either because of network latency, or a socket problem. Since we are
+ raison d'etre of this software it us sensible to just wait until we have something*/
while (iGlobalJobNo.load(std::memory_order_relaxed) == iJobNo)
std::this_thread::sleep_for(std::chrono::milliseconds(100));
OpenPOWER on IntegriCloud