From bb600d5a9178ce32375edfce50a8a568a88d13a8 Mon Sep 17 00:00:00 2001 From: Qi Tao Date: Mon, 4 Dec 2023 17:20:38 +0800 Subject: [PATCH 107/123] uadk: fix the failure process bug After the sem_post operation of full_sem fails, it need to restore empty_sem to ensure that resources are available. Signed-off-by: Chenghai Huang --- wd_util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wd_util.c b/wd_util.c index 2892ee9..24e1094 100644 --- a/wd_util.c +++ b/wd_util.c @@ -1398,6 +1398,7 @@ err_out: task_queue->cur_task--; task_queue->prod = curr_prod; pthread_mutex_unlock(&task_queue->lock); + sem_post(&task_queue->empty_sem); return ret; } -- 2.31.1.windows.1