shithub: libvpx

Download patch

ref: d6f7529d1576b21c39686272603364087d4f5b23
parent: 097afb6f43fbc9733fc1f69dd51b8795f1b7b8fa
author: James Zern <jzern@google.com>
date: Mon Feb 18 12:03:54 EST 2019

vpx_thread.h: remove unused sched_yield()

usage was removed with:
c1b024b48 Modify map read/write to sync logic in row_mt case

Change-Id: I515fe397083079a4f11702e67c322fd04bdcf410

--- a/vpx_util/vpx_thread.h
+++ b/vpx_util/vpx_thread.h
@@ -212,16 +212,6 @@
   return !ok;
 }
 
-static INLINE int sched_yield() {
-  int ok = 0;
-#if _WIN32_WINNT >= 0x0400  // Windows XP and above
-  SwitchToThread();
-#else
-  Sleep(0);
-#endif  // _WIN32_WINNT >= 0x0400
-  return ok;
-}
-
 #elif defined(__OS2__)
 #define INCL_DOS
 #include <os2.h>  // NOLINT