tls-inl.h 439 B

123456789101112131415161718
  1. #ifndef TLS_INL_H_
  2. #error "Direct inclusion of this file is not allowed, include tls.h"
  3. // For the sake of sane code completion.
  4. #include "tls.h"
  5. #endif
  6. namespace NYT {
  7. ////////////////////////////////////////////////////////////////////////////////
  8. template <class T>
  9. T& GetTlsRef(volatile T& arg)
  10. {
  11. return const_cast<T&>(arg);
  12. }
  13. ////////////////////////////////////////////////////////////////////////////////
  14. } // namespace NYT