simplify piprotectedvariable #197

Merged
peri4 merged 8 commits from protected_var_refact into master 2026-03-18 10:58:58 +03:00
Showing only changes of commit 9dc1af921c - Show all commits

View File

@@ -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);
}
}));
}