[FFmpeg-cvslog] r16144 - trunk/libavcodec/pthread.c

diego subversion
Mon Dec 15 22:02:17 CET 2008


Author: diego
Date: Mon Dec 15 22:02:17 2008
New Revision: 16144

Log:
Avoid invasion of POSIX-reserved _t namespace.


Modified:
   trunk/libavcodec/pthread.c

Modified: trunk/libavcodec/pthread.c
==============================================================================
--- trunk/libavcodec/pthread.c	(original)
+++ trunk/libavcodec/pthread.c	Mon Dec 15 22:02:17 2008
@@ -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 @@ void avcodec_thread_free(AVCodecContext 
     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;




More information about the ffmpeg-cvslog mailing list