stack_guards.cpp 339 B

1234567891011121314151617
  1. #include "stack_guards.h"
  2. namespace NCoro::NStack {
  3. template<>
  4. const TCanaryGuard& GetGuard<TCanaryGuard>() noexcept {
  5. static const TCanaryGuard guard;
  6. return guard;
  7. }
  8. template<>
  9. const TPageGuard& GetGuard<TPageGuard>() noexcept {
  10. static const TPageGuard guard;
  11. return guard;
  12. }
  13. }