Skip to content

Commit b3463ec

Browse files
committed
Move NO_UNIQUE_ADDRESS macro to library/cpp/yt/misc/port.h
8b95cb159efca3d611ef0361a6f53a20b2fb5b37
1 parent 326c3bd commit b3463ec

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

library/cpp/yt/misc/port.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,9 @@
6969
#else
7070
#error Unsupported compiler
7171
#endif
72+
73+
#if defined(_unix_)
74+
#define NO_UNIQUE_ADDRESS [[no_unique_address]]
75+
#else
76+
#define NO_UNIQUE_ADDRESS
77+
#endif

yt/yt/core/concurrency/fair_share_invoker_pool.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#include <yt/yt/library/ytprof/api/api.h>
1616

17+
#include <library/cpp/yt/misc/port.h>
18+
1719
#include <library/cpp/yt/memory/weak_ptr.h>
1820

1921
#include <library/cpp/yt/threading/rw_spin_lock.h>
@@ -33,14 +35,6 @@ constinit YT_THREAD_LOCAL(TCpuProfilerTagGuard) FairShareInvokerPoolProfilerTagG
3335

3436
////////////////////////////////////////////////////////////////////////////////
3537

36-
#if defined(_unix_)
37-
#define NO_UNIQUE_ADDRESS [[no_unique_address]]
38-
#else
39-
#define NO_UNIQUE_ADDRESS
40-
#endif
41-
42-
////////////////////////////////////////////////////////////////////////////////
43-
4438
class TFairShareCallbackQueue
4539
: public IFairShareCallbackQueue
4640
{

0 commit comments

Comments
 (0)