diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2023-12-11 11:13:02 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2023-12-11 11:53:17 +0300 |
commit | 00ab65a037160a9d222e5dc291f8ffb148fc9479 (patch) | |
tree | e5f97d1024be7116c5de48a3a3ddd60afd34f70c | |
parent | 708e84a1342eccd8b69c761dd2916e33503a883a (diff) | |
download | ydb-00ab65a037160a9d222e5dc291f8ffb148fc9479.tar.gz |
Intermediate changes
-rw-r--r-- | yt/yt/core/misc/unittests/tls_destructor_ut.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/yt/yt/core/misc/unittests/tls_destructor_ut.cpp b/yt/yt/core/misc/unittests/tls_destructor_ut.cpp index e4e7a6f1e89..943f31ce72f 100644 --- a/yt/yt/core/misc/unittests/tls_destructor_ut.cpp +++ b/yt/yt/core/misc/unittests/tls_destructor_ut.cpp @@ -9,13 +9,13 @@ namespace { //////////////////////////////////////////////////////////////////////////////// -std::atomic<bool> TlsDestructorOfWasCalled = false; +std::atomic<bool> TlsDestructorWasCalled = false; struct TTlsGuard { ~TTlsGuard() { - TlsDestructorOfWasCalled = true; + TlsDestructorWasCalled = true; } }; @@ -26,11 +26,12 @@ TEST(TTlsDestructorTest, DestructorIsCalled) // This is the test of compiler in fact. Check expected behaviour. std::thread thread{[] { - Y_UNUSED(TlsGuard); // Important moment. Tls must be touched to be initialized and destructed later. + // Important moment. TLS must be touched to be initialized and destructed later. + Y_UNUSED(TlsGuard); }}; thread.join(); - EXPECT_TRUE(TlsDestructorOfWasCalled); + EXPECT_TRUE(TlsDestructorWasCalled); } //////////////////////////////////////////////////////////////////////////////// |