summaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/threading
diff options
context:
space:
mode:
authorosidorkin <[email protected]>2026-02-25 12:40:30 +0300
committerosidorkin <[email protected]>2026-02-25 13:25:22 +0300
commitd3fe34c3db78dfa1e84bc31e48f1608dc3e7df98 (patch)
tree28e14402e89303b4771fd9448e9f6efbfd948e1a /library/cpp/yt/threading
parent13fc93822fe09ac702249e3ab86bec74b62b5166 (diff)
YT-27453: Fix data race in NTabletNode::TChaosAgent::Disable
commit_hash:e6429e7cb58971aadd053ae42ad343f3c2aca5ef
Diffstat (limited to 'library/cpp/yt/threading')
-rw-r--r--library/cpp/yt/threading/atomic_object-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/yt/threading/atomic_object-inl.h b/library/cpp/yt/threading/atomic_object-inl.h
index fc8238cc83c..34bb7b262c8 100644
--- a/library/cpp/yt/threading/atomic_object-inl.h
+++ b/library/cpp/yt/threading/atomic_object-inl.h
@@ -66,7 +66,7 @@ template <std::invocable<const T&> F>
std::invoke_result_t<F, const T&> TAtomicObject<T>::Read(const F& func) const
{
auto guard = ReaderGuard(Spinlock_);
- return func(Object_);
+ return std::invoke(func, Object_);
}
template <class T>