aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/coroutine/engine/stack/stack_guards.cpp
blob: b8bcff039e5a54ece064572aa6d3683b3db565f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "stack_guards.h"


namespace NCoro::NStack {

    template<>
    const TCanaryGuard& GetGuard<TCanaryGuard>() noexcept {
        static const TCanaryGuard guard;
        return guard;
    }

    template<>
    const TPageGuard& GetGuard<TPageGuard>() noexcept {
        static const TPageGuard guard;
        return guard;
    }
}