traceless_guard.h 860 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #define TRACELESS_GUARD_INL_H_
  3. #include "traceless_guard-inl.h"
  4. #undef TRACELESS_GUARD_INL_H_
  5. namespace NYT::NThreading {
  6. // This guards are zero-cost replacements for normal ones
  7. // which allow user to avoid spinlocks being tracked.
  8. ////////////////////////////////////////////////////////////////////////////////
  9. using NPrivate::TTracelessGuard;
  10. using NPrivate::TTracelessInverseGuard;
  11. using NPrivate::TTracelessTryGuard;
  12. using NPrivate::TTracelessReaderGuard;
  13. using NPrivate::TTracelessWriterGuard;
  14. ////////////////////////////////////////////////////////////////////////////////
  15. using NPrivate::TracelessGuard;
  16. using NPrivate::TracelessTryGuard;
  17. using NPrivate::TracelessReaderGuard;
  18. using NPrivate::TracelessWriterGuard;
  19. ////////////////////////////////////////////////////////////////////////////////
  20. } // namespace NYT::NThreading