[x264-devel] Re: [PATCH] pthreads-w32 initialization

Loren Merritt lorenm at u.washington.edu
Sun Feb 25 01:10:00 CET 2007


On Sat, 24 Feb 2007, angustia at arrozcru.no-ip.org wrote:

> Currently, the x264 app initializes pthreads-w32 around #ifdef 
> PTW32_STATIC_LIB. That must be done for the static library.
>
> Attached patch also initializes from within the encoder, so that it also 
> works when x264 is used by another library (e.g. FFmpeg). They should be able 
> to nest together.

Your patch is not re-entrant. If an application has multiple instances of 
x264, closing one will crash the others. (Unless it's reference-counted 
and doesn't actually deinit until you call detach as many times as 
attach?)

--Loren Merritt

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list