[FFmpeg-devel] [FFmpeg-cvslog] dnn/queue: add queue and safe_queue support
Michael Niedermayer
michael at niedermayer.cc
Wed Dec 30 01:27:42 EET 2020
On Tue, Dec 29, 2020 at 05:42:46AM +0000, Xie, Lin wrote:
> ffmpeg | branch: master | Xie, Lin <lin.xie at intel.com> | Mon Nov 9 14:09:13 2020 +0800| [6506ab8b03dd6747f6ad6b836a347a6fc346708b] | committer: Guo, Yejun
>
> dnn/queue: add queue and safe_queue support
>
> Signed-off-by: Xie, Lin <lin.xie at intel.com>
> Signed-off-by: Wu Zhiwen <zhiwen.wu at intel.com>
> Signed-off-by: Guo, Yejun <yejun.guo at intel.com>
>
> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6506ab8b03dd6747f6ad6b836a347a6fc346708b
> ---
>
> libavfilter/dnn/Makefile | 2 +
> libavfilter/dnn/queue.c | 176 +++++++++++++++++++++++++++++++++++++++++++
> libavfilter/dnn/queue.h | 41 ++++++++++
> libavfilter/dnn/safe_queue.c | 92 ++++++++++++++++++++++
> libavfilter/dnn/safe_queue.h | 36 +++++++++
> 5 files changed, 347 insertions(+)
breaks build with --disable-pthreads
src/libavfilter/dnn/safe_queue.c: In function ‘safe_queue_create’:
src/libavfilter/dnn/safe_queue.c:44:5: error: implicit declaration of function ‘pthread_mutex_init’; did you mean ‘ff_mutex_init’? [-Werror=implicit-function-declaration]
pthread_mutex_init(&sq->mutex, NULL);
^~~~~~~~~~~~~~~~~~
ff_mutex_init
src/libavfilter/dnn/safe_queue.c:45:5: error: implicit declaration of function ‘pthread_cond_init’ [-Werror=implicit-function-declaration]
pthread_cond_init(&sq->cond, NULL);
^~~~~~~~~~~~~~~~~
src/libavfilter/dnn/safe_queue.c: In function ‘safe_queue_destroy’:
src/libavfilter/dnn/safe_queue.c:55:5: error: implicit declaration of function ‘pthread_mutex_destroy’; did you mean ‘ff_mutex_destroy’? [-Werror=implicit-function-declaration]
pthread_mutex_destroy(&sq->mutex);
^~~~~~~~~~~~~~~~~~~~~
ff_mutex_destroy
src/libavfilter/dnn/safe_queue.c:56:5: error: implicit declaration of function ‘pthread_cond_destroy’; did you mean ‘__NR_io_destroy’? [-Werror=implicit-function-declaration]
pthread_cond_destroy(&sq->cond);
^~~~~~~~~~~~~~~~~~~~
__NR_io_destroy
src/libavfilter/dnn/safe_queue.c: In function ‘safe_queue_push_front’:
src/libavfilter/dnn/safe_queue.c:67:5: error: implicit declaration of function ‘pthread_mutex_lock’; did you mean ‘ff_mutex_lock’? [-Werror=implicit-function-declaration]
pthread_mutex_lock(&sq->mutex);
^~~~~~~~~~~~~~~~~~
ff_mutex_lock
src/libavfilter/dnn/safe_queue.c:69:5: error: implicit declaration of function ‘pthread_cond_signal’ [-Werror=implicit-function-declaration]
pthread_cond_signal(&sq->cond);
^~~~~~~~~~~~~~~~~~~
src/libavfilter/dnn/safe_queue.c:70:5: error: implicit declaration of function ‘pthread_mutex_unlock’; did you mean ‘ff_mutex_unlock’? [-Werror=implicit-function-declaration]
pthread_mutex_unlock(&sq->mutex);
^~~~~~~~~~~~~~~~~~~~
ff_mutex_unlock
src/libavfilter/dnn/safe_queue.c: In function ‘safe_queue_pop_front’:
src/libavfilter/dnn/safe_queue.c:86:9: error: implicit declaration of function ‘pthread_cond_wait’; did you mean ‘__pread_chk_warn’? [-Werror=implicit-function-declaration]
pthread_cond_wait(&sq->cond, &sq->mutex);
^~~~~~~~~~~~~~~~~
__pread_chk_warn
cc1: some warnings being treated as errors
src/ffbuild/common.mak:67: recipe for target 'libavfilter/dnn/safe_queue.o' failed
make: *** [libavfilter/dnn/safe_queue.o] Error 1
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20201230/851c7437/attachment.sig>
More information about the ffmpeg-devel
mailing list