]> git.sesse.net Git - ffmpeg/commit
dnn_backend_openvino.c: fix multi-thread issue for async execution
authorGuo, Yejun <yejun.guo@intel.com>
Mon, 8 Feb 2021 10:46:27 +0000 (18:46 +0800)
committerGuo, Yejun <yejun.guo@intel.com>
Thu, 18 Feb 2021 01:59:37 +0000 (09:59 +0800)
commit995c33a046bf058c79947755fc26c8fea5edb410
tree588b3af24138e461e2261dd6644dfc65da4cccde
parent51c105a62d931b6c27c8cad5b9aba3fd1de43668
dnn_backend_openvino.c: fix multi-thread issue for async execution

once we mark done for the task in function infer_completion_callback,
the task is possible to be release in function ff_dnn_get_async_result_ov
in another thread just after it, so we need to record request queue
first, instead of using task->ov_model->request_queue later.

Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
libavfilter/dnn/dnn_backend_openvino.c