aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/threading/spin_lock_base-inl.h
blob: 60ae5b28b7c6aca234d158cc03a19b806f3bc1c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#ifndef SPIN_LOCK_BASE_INL_H_
#error "Direct inclusion of this file is not allowed, include spin_lock_base.h"
// For the sake of sane code completion.
#include "spin_lock_base.h"
#endif
#undef SPIN_LOCK_BASE_INL_H_

namespace NYT::NThreading {

////////////////////////////////////////////////////////////////////////////////

inline constexpr TSpinLockBase::TSpinLockBase()
    : Location_({}, -1)
{ }

inline constexpr TSpinLockBase::TSpinLockBase(const ::TSourceLocation& location)
    : Location_(location)
{ }

////////////////////////////////////////////////////////////////////////////////

} // namespace NYT::NThreading