summaryrefslogtreecommitdiff
path: root/vpx_util
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2018-08-30 09:58:02 -0700
committerJames Zern <jzern@google.com>2018-08-30 09:59:10 -0700
commit753fd86e86ac727dccac88376260b8f54502f2a3 (patch)
tree18de0bdc9ff5b2651aa8a08ba2ca9538db7ae950 /vpx_util
parent0bfab06084e44a62067aeabf43ba8087cee4a3ae (diff)
downloadlibvpx-753fd86e86ac727dccac88376260b8f54502f2a3.tar.gz
Revert "Loopfilter MultiThread Optimization"
This reverts commit dafe064289a917977439ab6f4f002b9946496084. Corrupted files may cause the decoder to hang as row progress in the loopfilter is used to progress each thread. BUG=webm:1558 Change-Id: I0674ce9af14d3fb7b2da8124e7b600616c8e734a
Diffstat (limited to 'vpx_util')
-rw-r--r--vpx_util/vpx_thread.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/vpx_util/vpx_thread.h b/vpx_util/vpx_thread.h
index 013a6179e..53a5f4966 100644
--- a/vpx_util/vpx_thread.h
+++ b/vpx_util/vpx_thread.h
@@ -159,23 +159,6 @@ static INLINE int pthread_cond_init(pthread_cond_t *const condition,
return 0;
}
-static INLINE int pthread_cond_broadcast(pthread_cond_t *const condition) {
- int ok = 1;
-#ifdef USE_WINDOWS_CONDITION_VARIABLE
- WakeAllConditionVariable(condition);
-#else
- while (WaitForSingleObject(condition->waiting_sem_, 0) == WAIT_OBJECT_0) {
- // a thread is waiting in pthread_cond_wait: allow it to be notified
- ok &= SetEvent(condition->signal_event_);
- // wait until the event is consumed so the signaler cannot consume
- // the event via its own pthread_cond_wait.
- ok &= (WaitForSingleObject(condition->received_sem_, INFINITE) !=
- WAIT_OBJECT_0);
- }
-#endif
- return !ok;
-}
-
static INLINE int pthread_cond_signal(pthread_cond_t *const condition) {
int ok = 1;
#ifdef USE_WINDOWS_CONDITION_VARIABLE