[FFmpeg-devel] [PATCH 1/2] libavutil/libavfilter: opencl wrapper based on comments on 20130401

James Almer jamrial at gmail.com
Wed Apr 3 23:34:43 CEST 2013


On 02/04/13 6:46 AM, Michael Niedermayer wrote:
>> Since unlike in atomic.c we have init() and uninit() functions here, there's no need 
>> to have a statically allocated mutex. We could call pthread_mutex_init() and
> 
> the init and uninit themselfs must be thread safe, also register is
> called before init and must be thread safe

As things are right now the code wont compile unless you use pthreads or no threading 
at all (See ticket #2422).

So the code either needs to be changed to allocate the mutexes dynamically (Which will
let us use the wrappers), or we make configure abort when trying to build with OpenCL 
support and w32threads or os2threads enabled.

Ideally, the latter if implemented should be a temporary solution until the former is 
implemented instead.

Regards.


More information about the ffmpeg-devel mailing list