summaryrefslogtreecommitdiff
path: root/vp8/decoder/threading.c
diff options
context:
space:
mode:
authorYunqing Wang <yunqingwang@google.com>2010-08-30 18:16:04 -0400
committerYunqing Wang <yunqingwang@google.com>2010-08-31 20:37:11 -0400
commit0e78efad0be73d293880d1b71053c0d70a50a080 (patch)
treea3e76c266712e05fd31a09521ce6075a2b59c982 /vp8/decoder/threading.c
parent0b94f5d6e827c0b4d6b2590592be4285f60c8477 (diff)
downloadlibvpx-0e78efad0be73d293880d1b71053c0d70a50a080.tar
libvpx-0e78efad0be73d293880d1b71053c0d70a50a080.tar.gz
libvpx-0e78efad0be73d293880d1b71053c0d70a50a080.tar.bz2
libvpx-0e78efad0be73d293880d1b71053c0d70a50a080.zip
Replace sleep(0) calls in multi-threaded decoder
This is a workaround for gLucid problem. Change-Id: I188a016a07e4c2ea212444c5a6284ff3c48a5caa
Diffstat (limited to 'vp8/decoder/threading.c')
-rw-r--r--vp8/decoder/threading.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/vp8/decoder/threading.c b/vp8/decoder/threading.c
index ba8439508..10e72ce2d 100644
--- a/vp8/decoder/threading.c
+++ b/vp8/decoder/threading.c
@@ -611,15 +611,12 @@ void vp8_mtdecode_mb_rows(VP8D_COMP *pbi,
for (mb_col = 0; mb_col < pc->mb_cols; mb_col++)
{
-
if ( mb_row > 0 && (mb_col & 7) == 0){
- //if ( mb_row > 0 ){
- while (mb_col > (*last_row_current_mb_col - 8) && *last_row_current_mb_col != pc->mb_cols - 1)
- {
- x86_pause_hint();
- thread_sleep(0);
- }
-
+ while (mb_col > (*last_row_current_mb_col - 8) && *last_row_current_mb_col != pc->mb_cols - 1)
+ {
+ x86_pause_hint();
+ thread_sleep(0);
+ }
}
if (xd->mode_info_context->mbmi.mode == SPLITMV || xd->mode_info_context->mbmi.mode == B_PRED)
@@ -763,7 +760,6 @@ void vp8_mt_loop_filter_frame( VP8D_COMP *pbi)
{
int Segment = (alt_flt_enabled) ? mbd->mode_info_context->mbmi.segment_id : 0;
-
if ( mb_row > 0 && (mb_col & 7) == 0){
// if ( mb_row > 0 ){
while (mb_col > (*last_row_current_mb_col-8) && *last_row_current_mb_col != cm->mb_cols - 1)