aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Germain <bnt.germain@gmail.com>2022-02-07 08:39:18 +0100
committerGitHub <noreply@github.com>2022-02-07 08:39:18 +0100
commit00c84df3adc0b295ef20bc35bc8df9632e3b93e7 (patch)
tree74cd9ce6cc21bfda4b889a782fa53b234a2af080
parenta7864cb60c8c0da2d62ea7a2a0b1a2b094ad7b76 (diff)
parentc8466a0c51422c6a63009a7220137ca8c4ae1a79 (diff)
downloadlanes-00c84df3adc0b295ef20bc35bc8df9632e3b93e7.tar.gz
lanes-00c84df3adc0b295ef20bc35bc8df9632e3b93e7.tar.bz2
lanes-00c84df3adc0b295ef20bc35bc8df9632e3b93e7.zip
Merge pull request #203 from SoundBot/patch-1
Replace deprecated pthread_yield with sched_yield
-rw-r--r--src/threading.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threading.h b/src/threading.h
index 9761f82..778b6a0 100644
--- a/src/threading.h
+++ b/src/threading.h
@@ -147,7 +147,7 @@ enum e_status { PENDING, RUNNING, WAITING, DONE, ERROR_ST, CANCELLED };
147 // for some reason win32-pthread doesn't have pthread_yield(), but sched_yield() 147 // for some reason win32-pthread doesn't have pthread_yield(), but sched_yield()
148 #define YIELD() sched_yield() 148 #define YIELD() sched_yield()
149 #else 149 #else
150 #define YIELD() pthread_yield() 150 #define YIELD() sched_yield()
151 #endif 151 #endif
152 #define THREAD_CALLCONV 152 #define THREAD_CALLCONV
153#endif //THREADAPI == THREADAPI_PTHREAD 153#endif //THREADAPI == THREADAPI_PTHREAD