changeset 8333:09aafff47bc0 libavcodec

Avoid invasion of POSIX-reserved _t namespace.
author diego
date Mon, 15 Dec 2008 21:02:17 +0000
parents 57d9d1f7955a
children 6bdd6dfc3574
files pthread.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pthread.c	Mon Dec 15 17:51:10 2008 +0000
+++ b/pthread.c	Mon Dec 15 21:02:17 2008 +0000
@@ -25,11 +25,11 @@
 
 #include "avcodec.h"
 
-typedef int (action_t)(AVCodecContext *c, void *arg);
+typedef int (action_func)(AVCodecContext *c, void *arg);
 
 typedef struct ThreadContext {
     pthread_t *workers;
-    action_t *func;
+    action_func *func;
     void *args;
     int *rets;
     int rets_count;
@@ -101,7 +101,7 @@
     av_freep(&avctx->thread_opaque);
 }
 
-int avcodec_thread_execute(AVCodecContext *avctx, action_t* func, void *arg, int *ret, int job_count, int job_size)
+int avcodec_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;