various fixes to allow mac osx compilation

This commit is contained in:
mydesktop 2014-04-30 13:52:21 -04:00
parent 9c70be0e77
commit 67df296650
13 changed files with 40 additions and 20 deletions

View file

@ -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;