aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/threading/traceless_guard.h
blob: 10ad0ded986770479faf728bd4a20afaa49c4cbc (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
26
27
28
29
#pragma once

#define TRACELESS_GUARD_INL_H_
#include "traceless_guard-inl.h"
#undef TRACELESS_GUARD_INL_H_

namespace NYT::NThreading {

// This guards are zero-cost replacements for normal ones
// which allow user to avoid spinlocks being tracked.

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

using NPrivate::TTracelessGuard;
using NPrivate::TTracelessInverseGuard;
using NPrivate::TTracelessTryGuard;
using NPrivate::TTracelessReaderGuard;
using NPrivate::TTracelessWriterGuard;

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

using NPrivate::TracelessGuard;
using NPrivate::TracelessTryGuard;
using NPrivate::TracelessReaderGuard;
using NPrivate::TracelessWriterGuard;

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

} // namespace NYT::NThreading