From: James Zern Date: Tue, 19 Feb 2019 01:03:54 +0000 (-0800) Subject: vpx_thread.h: remove unused sched_yield() X-Git-Tag: v1.8.1~235 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6f7529d1576b21c39686272603364087d4f5b23;p=libvpx 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 --- diff --git a/vpx_util/vpx_thread.h b/vpx_util/vpx_thread.h index 26de0de9f..6d308e949 100644 --- a/vpx_util/vpx_thread.h +++ b/vpx_util/vpx_thread.h @@ -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 // NOLINT