blob: eefbf0d96301c4700b26e7eb79e8f7cb123d35e9 (
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
25
|
#pragma once
#include <util/system/src_location.h>
namespace NYT::NThreading {
////////////////////////////////////////////////////////////////////////////////
class TSpinLockBase
{
public:
constexpr TSpinLockBase();
explicit constexpr TSpinLockBase(const ::TSourceLocation& location);
protected:
const ::TSourceLocation Location_;
};
////////////////////////////////////////////////////////////////////////////////
} // namespace NYT::NThreading
#define SPIN_LOCK_BASE_INL_H_
#include "spin_lock_base-inl.h"
#undef SPIN_LOCK_BASE_INL_H_
|