mirror of https://github.com/PCSX2/pcsx2.git
DEV9: use pthreads to set priority on mac
This commit is contained in:
parent
be67773dd7
commit
2a921b40af
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#if defined(__linux__)
|
#if defined(__unix__) || defined(__APPLE__)
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#endif
|
#endif
|
||||||
#include "net.h"
|
#include "net.h"
|
||||||
|
@ -57,7 +57,7 @@ void InitNet(NetAdapter* ad)
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
SetThreadPriority(rx_thread.native_handle(), THREAD_PRIORITY_HIGHEST);
|
SetThreadPriority(rx_thread.native_handle(), THREAD_PRIORITY_HIGHEST);
|
||||||
#elif defined(__linux__)
|
#elif defined(__unix__) || defined(__APPLE__)
|
||||||
pthread_attr_t thAttr;
|
pthread_attr_t thAttr;
|
||||||
int policy = 0;
|
int policy = 0;
|
||||||
int max_prio_for_policy = 0;
|
int max_prio_for_policy = 0;
|
||||||
|
|
Loading…
Reference in New Issue