From 9dc1af921c100ebbba50feafd2f59903fec7eafc Mon Sep 17 00:00:00 2001 From: "andrey.bychkov" Date: Tue, 17 Mar 2026 19:18:44 +0300 Subject: [PATCH] more simplify Pointer --- tests/thread/piprotectedvariable_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/thread/piprotectedvariable_test.cpp b/tests/thread/piprotectedvariable_test.cpp index 77c43c05..e7facc40 100644 --- a/tests/thread/piprotectedvariable_test.cpp +++ b/tests/thread/piprotectedvariable_test.cpp @@ -82,7 +82,9 @@ TEST(PIProtectedVariable_ThreadSafety, ConcurrentReadWrite) { for (int j = 0; j < NUM_ITERATIONS; ++j) { auto val = pv.getRef(); (*val)++; + auto val2 = pv.getRef(); writeCount++; + ASSERT_EQ(writeCount, *val2); } })); }