aboutsummaryrefslogtreecommitdiff
path: root/tests/performance_tests/performance_utils.h
diff options
context:
space:
mode:
authorjebes <psteidelprogramming@gmail.com>2014-09-11 10:20:55 -0400
committerjebes <psteidelprogramming@gmail.com>2014-09-11 10:20:55 -0400
commitdfed3d39b6607508f75bc8d79e64c3e742dee155 (patch)
tree549a4bfa8b7b902cd5f87db8d90a6b6051aee786 /tests/performance_tests/performance_utils.h
parentHOW DO I GIT? (diff)
parentMerge pull request #128 from fluffypony/master (diff)
downloadmonero-dfed3d39b6607508f75bc8d79e64c3e742dee155.tar.xz
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'tests/performance_tests/performance_utils.h')
-rw-r--r--tests/performance_tests/performance_utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/performance_tests/performance_utils.h b/tests/performance_tests/performance_utils.h
index 43d57d81e..d585a0688 100644
--- a/tests/performance_tests/performance_utils.h
+++ b/tests/performance_tests/performance_utils.h
@@ -40,7 +40,7 @@
void set_process_affinity(int core)
{
-#if defined (__APPLE__)
+#if defined (__APPLE__) || defined(__FreeBSD__)
return;
#elif defined(BOOST_WINDOWS)
DWORD_PTR mask = 1;
@@ -62,7 +62,7 @@ void set_process_affinity(int core)
void set_thread_high_priority()
{
-#if defined(__APPLE__)
+#if defined(__APPLE__) || defined(__FreeBSD__)
return;
#elif defined(BOOST_WINDOWS)
::SetPriorityClass(::GetCurrentProcess(), HIGH_PRIORITY_CLASS);