summaryrefslogtreecommitdiff
path: root/libavcodec/pthread.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-04 09:54:42 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-04 09:55:24 +0100
commit3d4dc43259e2f58e7f55f2152094a1ee4333bfd2 (patch)
treeb586dcddc66156282747029a6c3f4476d31976a1 /libavcodec/pthread.c
parentf3758e8b804089468ad7a7c4aea8f0956f7ea880 (diff)
parent5cd6513f5be14b9744783d3d9e853d3f11065e93 (diff)
Merge commit '5cd6513f5be14b9744783d3d9e853d3f11065e93'
* commit '5cd6513f5be14b9744783d3d9e853d3f11065e93': pthread: drop avcodec_ prefixes from static functions Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pthread.c')
-rw-r--r--libavcodec/pthread.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index b8beac3ed1..c9c275adfa 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -189,7 +189,7 @@ static void* attribute_align_arg worker(void *v)
}
}
-static av_always_inline void avcodec_thread_park_workers(ThreadContext *c, int thread_count)
+static av_always_inline void thread_park_workers(ThreadContext *c, int thread_count)
{
while (c->current_job != thread_count + c->job_count)
pthread_cond_wait(&c->last_job_cond, &c->current_job_lock);
@@ -216,7 +216,7 @@ static void thread_free(AVCodecContext *avctx)
av_freep(&avctx->thread_opaque);
}
-static int avcodec_thread_execute(AVCodecContext *avctx, action_func* func, void *arg, int *ret, int job_count, int job_size)
+static int thread_execute(AVCodecContext *avctx, action_func* func, void *arg, int *ret, int job_count, int job_size)
{
ThreadContext *c= avctx->thread_opaque;
int dummy_ret;
@@ -244,16 +244,16 @@ static int avcodec_thread_execute(AVCodecContext *avctx, action_func* func, void
c->current_execute++;
pthread_cond_broadcast(&c->current_job_cond);
- avcodec_thread_park_workers(c, avctx->thread_count);
+ thread_park_workers(c, avctx->thread_count);
return 0;
}
-static int avcodec_thread_execute2(AVCodecContext *avctx, action_func2* func2, void *arg, int *ret, int job_count)
+static int thread_execute2(AVCodecContext *avctx, action_func2* func2, void *arg, int *ret, int job_count)
{
ThreadContext *c= avctx->thread_opaque;
c->func2 = func2;
- return avcodec_thread_execute(avctx, NULL, arg, ret, job_count, 0);
+ return thread_execute(avctx, NULL, arg, ret, job_count, 0);
}
static int thread_init_internal(AVCodecContext *avctx)
@@ -306,10 +306,10 @@ static int thread_init_internal(AVCodecContext *avctx)
}
}
- avcodec_thread_park_workers(c, thread_count);
+ thread_park_workers(c, thread_count);
- avctx->execute = avcodec_thread_execute;
- avctx->execute2 = avcodec_thread_execute2;
+ avctx->execute = thread_execute;
+ avctx->execute2 = thread_execute2;
return 0;
}