summaryrefslogtreecommitdiff
path: root/vp9/decoder/vp9_dthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'vp9/decoder/vp9_dthread.c')
-rw-r--r--vp9/decoder/vp9_dthread.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/vp9/decoder/vp9_dthread.c b/vp9/decoder/vp9_dthread.c
index d2a2b819c..0904e93f6 100644
--- a/vp9/decoder/vp9_dthread.c
+++ b/vp9/decoder/vp9_dthread.c
@@ -38,9 +38,15 @@ void vp9_frameworker_unlock_stats(VP9Worker *const worker) {
void vp9_frameworker_signal_stats(VP9Worker *const worker) {
#if CONFIG_MULTITHREAD
FrameWorkerData *const worker_data = worker->data1;
- // TODO(hkuang): Investigate using broadcast or signal.
+
+// TODO(hkuang): Fix the pthread_cond_broadcast in windows wrapper.
+#if defined(_WIN32) && !HAVE_PTHREAD_H
pthread_cond_signal(&worker_data->stats_cond);
#else
+ pthread_cond_broadcast(&worker_data->stats_cond);
+#endif
+
+#else
(void)worker;
#endif
}