DEV9: use pthreads to set priority on mac

This commit is contained in:
TheLastRar 2020-11-04 09:16:18 +00:00 committed by refractionpcsx2
parent be67773dd7
commit 2a921b40af
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
#include <chrono>
#include <thread>
#if defined(__linux__)
#if defined(__unix__) || defined(__APPLE__)
#include <pthread.h>
#endif
#include "net.h"
@ -57,7 +57,7 @@ void InitNet(NetAdapter* ad)
#ifdef _WIN32
SetThreadPriority(rx_thread.native_handle(), THREAD_PRIORITY_HIGHEST);
#elif defined(__linux__)
#elif defined(__unix__) || defined(__APPLE__)
pthread_attr_t thAttr;
int policy = 0;
int max_prio_for_policy = 0;