aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pthread.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-16 23:32:09 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-16 23:32:09 +0100
commit86a423d2b8c62ca11070b4d67df9cb838e887fa4 (patch)
tree8477df1992c2a559e52efddfb4549c6fa397d771 /libavcodec/pthread.c
parenta26bfc444d256585a9c084cc89ac0f983241755a (diff)
parent3736b13753921fd576080ea4e328ff80bb0abf9b (diff)
downloadffmpeg-86a423d2b8c62ca11070b4d67df9cb838e887fa4.tar.gz
Merge remote-tracking branch 'qatar/release/0.8' into release/0.10
* qatar/release/0.8: Changelog for 0.8.10 pthread: Avoid spurious wakeups Conflicts: Changelog Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pthread.c')
-rw-r--r--libavcodec/pthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index 72ce165202..5214c21e3c 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -78,8 +78,8 @@ typedef struct ThreadContext {
pthread_cond_t last_job_cond;
pthread_cond_t current_job_cond;
pthread_mutex_t current_job_lock;
+ unsigned current_execute;
int current_job;
- unsigned int current_execute;
int done;
} ThreadContext;
@@ -203,8 +203,8 @@ static void* attribute_align_arg worker(void *v)
{
AVCodecContext *avctx = v;
ThreadContext *c = avctx->thread_opaque;
+ unsigned last_execute = 0;
int our_job = c->job_count;
- int last_execute = 0;
int thread_count = avctx->thread_count;
int self_id;