define a linux only code
This commit is contained in:
parent
c01b6f8397
commit
de770bc668
|
@ -28,11 +28,11 @@ int EqueueInternal::waitForEvents(SceKernelEvent* ev, int num, u32 micros) {
|
||||||
ret = getTriggeredEvents(ev, num);
|
ret = getTriggeredEvents(ev, num);
|
||||||
return ret > 0;
|
return ret > 0;
|
||||||
};
|
};
|
||||||
|
#ifndef _WIN64
|
||||||
char buf[128];
|
char buf[128];
|
||||||
pthread_getname_np(pthread_self(), buf, 128);
|
pthread_getname_np(pthread_self(), buf, 128);
|
||||||
fmt::print("Thread {} waiting for events (micros = {})\n", buf, micros);
|
fmt::print("Thread {} waiting for events (micros = {})\n", buf, micros);
|
||||||
|
#endif // !_WIN64
|
||||||
if (micros == 0) {
|
if (micros == 0) {
|
||||||
m_cond.wait(lock, predicate);
|
m_cond.wait(lock, predicate);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue