Revision 4a287145

View differences:

libavcodec/avcodec.h
3256 3256

  
3257 3257
int avcodec_thread_init(AVCodecContext *s, int thread_count);
3258 3258
void avcodec_thread_free(AVCodecContext *s);
3259
int avcodec_thread_execute(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size);
3260 3259
int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size);
3261 3260
int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2, int, int),void *arg, int *ret, int count);
3262 3261
//FIXME func typedef
libavcodec/beosthread.c
92 92
    av_freep(&s->thread_opaque);
93 93
}
94 94

  
95
int avcodec_thread_execute(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size){
95
static int avcodec_thread_execute(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size){
96 96
    ThreadContext *c= s->thread_opaque;
97 97
    int i;
98 98

  
libavcodec/os2thread.c
39 39
}ThreadContext;
40 40

  
41 41

  
42
void attribute_align_arg thread_func(void *v){
42
static void attribute_align_arg thread_func(void *v){
43 43
    ThreadContext *c= v;
44 44

  
45 45
    for(;;){
......
81 81
    av_freep(&s->thread_opaque);
82 82
}
83 83

  
84
int avcodec_thread_execute(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size){
84
static int avcodec_thread_execute(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size){
85 85
    ThreadContext *c= s->thread_opaque;
86 86
    int i;
87 87

  
libavcodec/pthread.c
104 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 109
    ThreadContext *c= avctx->thread_opaque;
110 110
    int dummy_ret;
libavcodec/w32thread.c
93 93
    av_freep(&s->thread_opaque);
94 94
}
95 95

  
96
int avcodec_thread_execute(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size){
96
static int avcodec_thread_execute(AVCodecContext *s, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size){
97 97
    ThreadContext *c= s->thread_opaque;
98 98
    int i;
99 99
    int jobnr = 0;

Also available in: Unified diff