spin_lock_base-inl.h 643 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #ifndef SPIN_LOCK_BASE_INL_H_
  3. #error "Direct inclusion of this file is not allowed, include spin_lock_base.h"
  4. // For the sake of sane code completion.
  5. #include "spin_lock_base.h"
  6. #endif
  7. #undef SPIN_LOCK_BASE_INL_H_
  8. namespace NYT::NThreading {
  9. ////////////////////////////////////////////////////////////////////////////////
  10. inline constexpr TSpinLockBase::TSpinLockBase()
  11. : Location_({}, -1)
  12. { }
  13. inline constexpr TSpinLockBase::TSpinLockBase(const ::TSourceLocation& location)
  14. : Location_(location)
  15. { }
  16. ////////////////////////////////////////////////////////////////////////////////
  17. } // namespace NYT::NThreading