projects
/
platform
/
upstream
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
097afb6
)
vpx_thread.h: remove unused sched_yield()
author
James Zern
<jzern@google.com>
Tue, 19 Feb 2019 01:03:54 +0000
(17:03 -0800)
committer
James 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
patch
|
blob
|
history
diff --git
a/vpx_util/vpx_thread.h
b/vpx_util/vpx_thread.h
index
26de0de
..
6d308e9
100644
(file)
--- 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 <os2.h> // NOLINT