aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSoundBot <SoundBot@users.noreply.github.com>2022-01-19 14:53:31 -0500
committerGitHub <noreply@github.com>2022-01-19 14:53:31 -0500
commitc8466a0c51422c6a63009a7220137ca8c4ae1a79 (patch)
tree74cd9ce6cc21bfda4b889a782fa53b234a2af080 /src
parenta7864cb60c8c0da2d62ea7a2a0b1a2b094ad7b76 (diff)
downloadlanes-c8466a0c51422c6a63009a7220137ca8c4ae1a79.tar.gz
lanes-c8466a0c51422c6a63009a7220137ca8c4ae1a79.tar.bz2
lanes-c8466a0c51422c6a63009a7220137ca8c4ae1a79.zip
Replace deprecated pthread_yield with sched_yield
Since glibc 2.34, pthread_yield is nonstandard and marked as deprecated. See: https://man7.org/linux/man-pages/man3/pthread_yield.3.html
Diffstat (limited to 'src')
-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