]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[libvpx] add yield to vpx 1030/head
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 19 Mar 2020 03:08:33 +0000 (03:08 +0000)
committerMike Jerris <mike@jerris.com>
Tue, 12 Jan 2021 17:57:43 +0000 (10:57 -0700)
libs/libvpx/.update
libs/libvpx/vp8/common/threading.h

index 09e6d8ef572fb72fd07a87a8762fecced4b1208f..815a0a77a891c1208dd78b4d5c4c8a8b7b881864 100644 (file)
@@ -1 +1 @@
-Wed Feb 27 11:26:31 MST 2019
+Thu Mar 19 03:08:11 UTC 2020
index 7a637cdff222fcf5d302e71bbec4515e8316ee15..f2e5e8c54fa0948af3dc4c925500c9a9a5b2382e 100644 (file)
@@ -171,11 +171,11 @@ static inline int sem_destroy(sem_t *sem) {
 #define sem_wait(sem) (semaphore_wait(*sem))
 #define sem_post(sem) semaphore_signal(*sem)
 #define sem_destroy(sem) semaphore_destroy(mach_task_self(), *sem)
-#define thread_sleep(nms) { struct timespec ts;ts.tv_sec=0; ts.tv_nsec = 1000*nms;nanosleep(&ts, NULL);} 
+#define thread_sleep(nms) { struct timespec ts;ts.tv_sec=0; ts.tv_nsec = 1000*nms;sched_yield();nanosleep(&ts, NULL);} 
 #else
 #include <unistd.h>
 #include <sched.h>
-#define thread_sleep(nms) {struct timespec ts;ts.tv_sec=0; ts.tv_nsec = 1000*nms;nanosleep(&ts, NULL);}
+#define thread_sleep(nms) {struct timespec ts;ts.tv_sec=0; ts.tv_nsec = 1000*nms;sched_yield();clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, NULL);}
 #endif
 /* Not Windows. Assume pthreads */