diff --git a/base/test/unittest/common/utils_safe_block_queue_tracking.cpp b/base/test/unittest/common/utils_safe_block_queue_tracking.cpp index 05e35b7fc46a191c625c32ae6692eda8ce6f653e..c5e77d80d8ceb41f041cec5d751342558e4fb57b 100644 --- a/base/test/unittest/common/utils_safe_block_queue_tracking.cpp +++ b/base/test/unittest/common/utils_safe_block_queue_tracking.cpp @@ -488,8 +488,8 @@ HWTEST_F(UtilsSafeBlockQueueTracking, testMutilthreadConcurrentGetAndBlockInfull ASSERT_EQ(getedOut, THREAD_NUM); ASSERT_EQ(ungetedOut, static_cast(0)); - for (auto& t : threads) { - t.join(); + for (auto& thd : threads) { + thd.join(); } while (!DemoThreadData::shareQueue.IsEmpty()) { @@ -680,12 +680,12 @@ HWTEST_F(UtilsSafeBlockQueueTracking, testMutilthreadConcurrentGetAndPopInfullqu ASSERT_FALSE(demoDatas[0].joinStatus); demoDatas[0].joinStatus = false; - for (auto& t : threadsout) { - t.join(); + for (auto& thdout : threadsout) { + thdout.join(); } - for (auto& t : threadsin) { - t.join(); + for (auto& thdin : threadsin) { + thdin.join(); } while (!DemoThreadData::shareQueue.IsEmpty()) {