576470cb3a
Prerequisite for building fah-viewer of Folding@Home.
11 lines
328 B
Diff
11 lines
328 B
Diff
--- src/cbang/os/Thread.cpp 2020-01-20 01:56:06.000000000 +0100
|
|
+++ src/cbang/os/Thread.cpp 2020-04-06 09:00:02.117699569 +0200
|
|
@@ -214,7 +214,7 @@
|
|
void Thread::yield() {
|
|
#ifdef _WIN32
|
|
SwitchToThread();
|
|
-#elif defined(__APPLE__)
|
|
+#elif defined(__APPLE__) || !defined(__GLIBC__)
|
|
sched_yield();
|
|
#else
|
|
pthread_yield();
|