projects
/
platform
/
adaptation
/
npu
/
trix-engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68d2bda
)
Tests/Utils: Fix the Coverity issue 1776582
accepted/tizen/unified/20250327.154213
accepted/tizen/unified/x/20250327.215017
author
Wook Song
<wook16.song@samsung.com>
Wed, 26 Mar 2025 07:15:49 +0000
(16:15 +0900)
committer
Wook Song
<wook16.song@samsung.com>
Wed, 26 Mar 2025 10:41:59 +0000
(19:41 +0900)
This patch adds a missing lock mechanism to address the Coverity issue
1776582
.
Change-Id: Ifd9895fd41ab0ae408dcf150fa11781cc77f78c4
Signed-off-by: Wook Song <wook16.song@samsung.com>
tests/utils/ne_test_utils.cc
patch
|
blob
|
history
diff --git
a/tests/utils/ne_test_utils.cc
b/tests/utils/ne_test_utils.cc
index 79a264504ca004ce81ca4f96fae5727c2b4306c1..b533650f2f6a234c2efb4d985f640ec9c5cccf8f 100644
(file)
--- a/
tests/utils/ne_test_utils.cc
+++ b/
tests/utils/ne_test_utils.cc
@@
-707,7
+707,10
@@
UtilTrinity::submitRequest (int req_id) {
status = submitNPU_request (dev_, req_id);
if (status == 0) {
- total_++;
+ {
+ std::unique_lock<std::mutex> lock (m_);
+ total_++;
+ }
CallbackData *cb_data = new CallbackData ();
cb_data->instance = this;