aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/threading/public.h
blob: 92d062ac3e18d22ad41c85defacbf1a0ead8a93b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <cstddef>

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