aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/misc/tls-inl.h
blob: 51ef91517f925cea6620cbe838e38310b2a5a455 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef TLS_INL_H_
#error "Direct inclusion of this file is not allowed, include tls.h"
// For the sake of sane code completion.
#include "tls.h"
#endif

namespace NYT {

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

template <class T>
T& GetTlsRef(volatile T& arg)
{
    return const_cast<T&>(arg);
}
////////////////////////////////////////////////////////////////////////////////

} // namespace NYT