From ae6547ef7935f56cdc7d9adaabfcf125e06e471a Mon Sep 17 00:00:00 2001 From: tobo Date: Thu, 29 Jan 2026 19:19:17 +0300 Subject: TAtomic => std::atomic in library/cpp/coroutine/engine commit_hash:dec1324c908f86e371bfda82e5cb1d90f06a9d06 --- library/cpp/coroutine/engine/coroutine_ut.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'library/cpp/coroutine/engine/coroutine_ut.cpp') diff --git a/library/cpp/coroutine/engine/coroutine_ut.cpp b/library/cpp/coroutine/engine/coroutine_ut.cpp index 656e3943c05..20176fdb91f 100644 --- a/library/cpp/coroutine/engine/coroutine_ut.cpp +++ b/library/cpp/coroutine/engine/coroutine_ut.cpp @@ -2,7 +2,6 @@ #include "condvar.h" #include "network.h" -#include #include #include @@ -13,6 +12,8 @@ #include #include +#include + // TODO (velavokr): BALANCER-1345 add more tests on pollers class TCoroTest: public TTestBase { @@ -162,11 +163,11 @@ void TCoroTest::TestSimpleX1() { void TCoroTest::TestSimpleX1MultiThread() { TVector> threads; const size_t nThreads = 0; - TAtomic c = 0; + std::atomic c = 0; for (size_t i = 0; i < nThreads; ++i) { threads.push_back(MakeHolder([&]() { TestSimpleX1(); - AtomicIncrement(c); + ++c; })); } @@ -178,7 +179,7 @@ void TCoroTest::TestSimpleX1MultiThread() { t->Join(); } - UNIT_ASSERT_EQUAL(c, nThreads); + UNIT_ASSERT_EQUAL(c.load(), nThreads); } struct TTestObject { -- cgit v1.3