aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/condvar_ut.cpp
diff options
context:
space:
mode:
authorayles <ayles@yandex-team.com>2022-09-19 12:27:43 +0300
committerayles <ayles@yandex-team.com>2022-09-19 12:27:43 +0300
commitff49fbec3c655b16509b12a0f3a82efacd521771 (patch)
treee14ab4fda50eaf34e8f2c2be86ab2cb055eb96e2 /util/system/condvar_ut.cpp
parent94de3c44fbfb54ffa1ea7a8baa73d174ee6f40b1 (diff)
downloadydb-ff49fbec3c655b16509b12a0f3a82efacd521771.tar.gz
Fix tsan warnings in yt intrusive ptr
For example, https://github.com/google/sanitizers/issues/1352 - tsan is not working well with std::atomic_thread_fence Minimal reproducible example (and one that bothers most in every fiber-aware service): ``` auto threadPool = NYT::New<NYT::NConcurrency::TThreadPool>(2, "thread"); TVector<NYT::TFuture<void>> futures; for (size_t i = 0; i < 100000; ++i) { futures.emplace_back(BIND([]() { }).AsyncVia(threadPool->GetInvoker()).Run()); } for (auto& future : futures) { future.Get().ThrowOnError(); } ```
Diffstat (limited to 'util/system/condvar_ut.cpp')
0 files changed, 0 insertions, 0 deletions