aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/threading/public.h
diff options
context:
space:
mode:
authoraleexfi <aleexfi@yandex-team.com>2023-04-17 19:04:38 +0300
committeraleexfi <aleexfi@yandex-team.com>2023-04-17 19:04:38 +0300
commit33eeb5e847369fe68b7a4780f62c536860d257d2 (patch)
treedb0e5692e4e63f902e8177eb076f22721dda50c2 /library/cpp/yt/threading/public.h
parent68531f6882c2533c3537acb445adb5c81fabf62b (diff)
downloadydb-33eeb5e847369fe68b7a4780f62c536860d257d2.tar.gz
Revert "YT-17689: Move TFreeList to library/cpp/yt/memory"
This reverts commit 617a1d07971366c19cdf278579ee9b1cbfa53db8, reversing changes made to 27e0312d3842c4e5e3ea6b09611c8f6ff6938dd6.
Diffstat (limited to 'library/cpp/yt/threading/public.h')
-rw-r--r--library/cpp/yt/threading/public.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/cpp/yt/threading/public.h b/library/cpp/yt/threading/public.h
index ab6cb22663..92d062ac3e 100644
--- a/library/cpp/yt/threading/public.h
+++ b/library/cpp/yt/threading/public.h
@@ -6,9 +6,13 @@ namespace NYT::NThreading {
////////////////////////////////////////////////////////////////////////////////
+// TODO(babenko): consider increasing to 128 due to cache line pairing in L2 prefetcher.
+constexpr size_t CacheLineSize = 64;
+
#define YT_DECLARE_SPIN_LOCK(type, name) \
type name{__LOCATION__}
////////////////////////////////////////////////////////////////////////////////
} // namespace NYT::NThreading
+