summaryrefslogtreecommitdiff
path: root/vp8/decoder/onyxd_int.h
diff options
context:
space:
mode:
authorYunqing Wang <yunqingwang@google.com>2016-07-14 14:50:52 -0700
committerYunqing Wang <yunqingwang@google.com>2016-07-21 12:28:25 -0700
commit87c6c5224d4fb261fad4f3c56336ef57b27acd47 (patch)
tree5d6e76c0f347943decb525ba965003c36fb1a97a /vp8/decoder/onyxd_int.h
parent16e069b8bb4d523007bf84be7c0a1bdde58539c4 (diff)
downloadlibvpx-87c6c5224d4fb261fad4f3c56336ef57b27acd47.tar
libvpx-87c6c5224d4fb261fad4f3c56336ef57b27acd47.tar.gz
libvpx-87c6c5224d4fb261fad4f3c56336ef57b27acd47.tar.bz2
libvpx-87c6c5224d4fb261fad4f3c56336ef57b27acd47.zip
Revert "Amend and improve VP8 multithreading implementation"
Reverted the patch because of possible performance issue. Change-Id: I49944f827ccd38ed194c9f8d9cb9036fa9bf79e1
Diffstat (limited to 'vp8/decoder/onyxd_int.h')
-rw-r--r--vp8/decoder/onyxd_int.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/vp8/decoder/onyxd_int.h b/vp8/decoder/onyxd_int.h
index 6ad6245f4..3a8a43146 100644
--- a/vp8/decoder/onyxd_int.h
+++ b/vp8/decoder/onyxd_int.h
@@ -70,8 +70,7 @@ typedef struct VP8D_COMP {
#if CONFIG_MULTITHREAD
/* variable for threading */
-
- int b_multithreaded_rd;
+ volatile int b_multithreaded_rd;
int max_threads;
int current_mb_col_main;
unsigned int decoding_thread_count;
@@ -80,8 +79,6 @@ typedef struct VP8D_COMP {
int mt_baseline_filter_level[MAX_MB_SEGMENTS];
int sync_range;
int *mt_current_mb_col; /* Each row remembers its already decoded column. */
- pthread_mutex_t *pmutex;
- pthread_mutex_t mt_mutex; /* mutex for b_multithreaded_rd */
unsigned char **mt_yabove_row; /* mb_rows x width */
unsigned char **mt_uabove_row;