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

Wei Gao highgod0401 at gmail.com
Thu Apr 4 05:36:16 CEST 2013


2013/4/4 James Almer <jamrial at gmail.com>

> 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.
>
Hi, I want to ask a question, does it mean that the OpenCL code can't be
used  in w32threads or os2threads? Is there any solutions to solve that?
Thanks
Best regards

> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list