Revision c4687bf6

View differences:

libavcodec/pthread.c
25 25

  
26 26
#include "avcodec.h"
27 27

  
28
typedef int (action_t)(AVCodecContext *c, void *arg);
28
typedef int (action_func)(AVCodecContext *c, void *arg);
29 29

  
30 30
typedef struct ThreadContext {
31 31
    pthread_t *workers;
32
    action_t *func;
32
    action_func *func;
33 33
    void *args;
34 34
    int *rets;
35 35
    int rets_count;
......
101 101
    av_freep(&avctx->thread_opaque);
102 102
}
103 103

  
104
int avcodec_thread_execute(AVCodecContext *avctx, action_t* func, void *arg, int *ret, int job_count, int job_size)
104
int avcodec_thread_execute(AVCodecContext *avctx, action_func* func, void *arg, int *ret, int job_count, int job_size)
105 105
{
106 106
    ThreadContext *c= avctx->thread_opaque;
107 107
    int dummy_ret;

Also available in: Unified diff