[FFmpeg-devel] [PATCH] avcodec thread safety fix

Diego Biurrun diego
Mon May 25 20:00:03 CEST 2009


On Mon, May 25, 2009 at 07:59:16PM +0200, Andreas ?man wrote:
> Diego Biurrun wrote:
> >On Mon, May 25, 2009 at 07:47:13PM +0200, Andreas ?man wrote:
> >>A patch with this attached.
> >>--- libavcodec/utils.c	(revision 18941)
> >>+++ libavcodec/utils.c	(working copy)
> >>@@ -65,6 +65,7 @@
> >> 
> >> static int volatile entangled_thread_counter=0;
> >>+static void (*codec_mutex_cb)(int lock);
> >
> >Why the ugly forward declaration?
> 
> It's not a forward declaration. It's a function pointer.

Gah, yes of course, I should open my eyes...

Diego



More information about the ffmpeg-devel mailing list