vpx_thread.h: remove unused sched_yield()
authorJames Zern <jzern@google.com>
Tue, 19 Feb 2019 01:03:54 +0000 (17:03 -0800)
committerJames Zern <jzern@google.com>
Wed, 20 Feb 2019 05:01:17 +0000 (21:01 -0800)
usage was removed with:
c1b024b48 Modify map read/write to sync logic in row_mt case

Change-Id: I515fe397083079a4f11702e67c322fd04bdcf410

vpx_util/vpx_thread.h

index 26de0de..6d308e9 100644 (file)
@@ -212,16 +212,6 @@ static INLINE int pthread_cond_wait(pthread_cond_t *const condition,
   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