Browse Source

Move NO_UNIQUE_ADDRESS macro to library/cpp/yt/misc/port.h
8b95cb159efca3d611ef0361a6f53a20b2fb5b37

arkady-e1ppa 10 months ago
parent
commit
b3463ec39a
2 changed files with 8 additions and 8 deletions
  1. 6 0
      library/cpp/yt/misc/port.h
  2. 2 8
      yt/yt/core/concurrency/fair_share_invoker_pool.cpp

+ 6 - 0
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

+ 2 - 8
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
 {