[FFmpeg-trac] #2422(avutil:new): Compilation with OpenCL fails when w32threads or os2threads are enabled
FFmpeg
trac at avcodec.org
Mon May 27 03:51:51 CEST 2013
#2422: Compilation with OpenCL fails when w32threads or os2threads are enabled
------------------------------------+----------------------------------
Reporter: jamal | Owner:
Type: defect | Status: new
Priority: important | Component: avutil
Version: git-master | Resolution:
Keywords: opencl | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+----------------------------------
Comment (by highgod):
It is because I use a atomic_opencl_lock to make sure that the
"opencl_ctx" can be accessed by only one thread at the same time, and it
is require pthreads I think. If disable the pthreads, there will be no
"static pthread_mutex_t atomic_opencl_lock = PTHREAD_MUTEX_INITIALIZER;",
so is there any other better way to implement it?
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2422#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list