Mercurial > libavcodec.hg
comparison pthread.c @ 11492:7bfe7456e372 libavcodec
Remove avcodec_thread_execute from avcodec.h, and make static functions that
need it in *thread.c.
author | benoit |
---|---|
date | Mon, 15 Mar 2010 14:03:01 +0000 |
parents | 8de15f200be8 |
children |
comparison
equal
deleted
inserted
replaced
11491:63837bcce840 | 11492:7bfe7456e372 |
---|---|
102 pthread_cond_destroy(&c->last_job_cond); | 102 pthread_cond_destroy(&c->last_job_cond); |
103 av_free(c->workers); | 103 av_free(c->workers); |
104 av_freep(&avctx->thread_opaque); | 104 av_freep(&avctx->thread_opaque); |
105 } | 105 } |
106 | 106 |
107 int avcodec_thread_execute(AVCodecContext *avctx, action_func* func, void *arg, int *ret, int job_count, int job_size) | 107 static int avcodec_thread_execute(AVCodecContext *avctx, action_func* func, void *arg, int *ret, int job_count, int job_size) |
108 { | 108 { |
109 ThreadContext *c= avctx->thread_opaque; | 109 ThreadContext *c= avctx->thread_opaque; |
110 int dummy_ret; | 110 int dummy_ret; |
111 | 111 |
112 if (job_count <= 0) | 112 if (job_count <= 0) |