mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
various fixes to allow mac osx compilation
This commit is contained in:
parent
9c70be0e77
commit
67df296650
13 changed files with 40 additions and 20 deletions
|
@ -14,7 +14,9 @@
|
|||
|
||||
void set_process_affinity(int core)
|
||||
{
|
||||
#if defined(BOOST_WINDOWS)
|
||||
#if defined (__APPLE__)
|
||||
return;
|
||||
#elif defined(BOOST_WINDOWS)
|
||||
DWORD_PTR mask = 1;
|
||||
for (int i = 0; i < core; ++i)
|
||||
{
|
||||
|
@ -34,7 +36,9 @@ void set_process_affinity(int core)
|
|||
|
||||
void set_thread_high_priority()
|
||||
{
|
||||
#if defined(BOOST_WINDOWS)
|
||||
#if defined(__APPLE__)
|
||||
return;
|
||||
#elif defined(BOOST_WINDOWS)
|
||||
::SetPriorityClass(::GetCurrentProcess(), HIGH_PRIORITY_CLASS);
|
||||
#elif defined(BOOST_HAS_PTHREADS)
|
||||
pthread_attr_t attr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue