aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarkady-e1ppa <arkady-e1ppa@yandex-team.com>2024-04-23 10:34:27 +0300
committerarkady-e1ppa <arkady-e1ppa@yandex-team.com>2024-04-23 10:44:11 +0300
commitb3463ec39aa72198a0df194f2d4a58a96e583aad (patch)
tree2e9660dfedd9fb9d086837a62f0180514bf34bc8
parent326c3bd5cf26d13a8d61522f66e2425d8f7890dc (diff)
downloadydb-b3463ec39aa72198a0df194f2d4a58a96e583aad.tar.gz
Move NO_UNIQUE_ADDRESS macro to library/cpp/yt/misc/port.h
8b95cb159efca3d611ef0361a6f53a20b2fb5b37
-rw-r--r--library/cpp/yt/misc/port.h6
-rw-r--r--yt/yt/core/concurrency/fair_share_invoker_pool.cpp10
2 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/yt/misc/port.h b/library/cpp/yt/misc/port.h
index 7cfb825708..e30e163a59 100644
--- a/library/cpp/yt/misc/port.h
+++ b/library/cpp/yt/misc/port.h
@@ -69,3 +69,9 @@
#else
#error Unsupported compiler
#endif
+
+#if defined(_unix_)
+ #define NO_UNIQUE_ADDRESS [[no_unique_address]]
+#else
+ #define NO_UNIQUE_ADDRESS
+#endif
diff --git a/yt/yt/core/concurrency/fair_share_invoker_pool.cpp b/yt/yt/core/concurrency/fair_share_invoker_pool.cpp
index 7841446b7e..1f2f26fc78 100644
--- a/yt/yt/core/concurrency/fair_share_invoker_pool.cpp
+++ b/yt/yt/core/concurrency/fair_share_invoker_pool.cpp
@@ -14,6 +14,8 @@
#include <yt/yt/library/ytprof/api/api.h>
+#include <library/cpp/yt/misc/port.h>
+
#include <library/cpp/yt/memory/weak_ptr.h>
#include <library/cpp/yt/threading/rw_spin_lock.h>
@@ -33,14 +35,6 @@ constinit YT_THREAD_LOCAL(TCpuProfilerTagGuard) FairShareInvokerPoolProfilerTagG
////////////////////////////////////////////////////////////////////////////////
-#if defined(_unix_)
- #define NO_UNIQUE_ADDRESS [[no_unique_address]]
-#else
- #define NO_UNIQUE_ADDRESS
-#endif
-
-////////////////////////////////////////////////////////////////////////////////
-
class TFairShareCallbackQueue
: public IFairShareCallbackQueue
{