MCPcopy Create free account
hub / github.com/DISTORTEC/distortos / checkStackGuard

Method checkStackGuard

source/scheduler/Stack.cpp:108–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108bool Stack::checkStackGuard() const
109{
110 return std::all_of(static_cast<decltype(&stackSentinel)>(adjustedStorage_),
111 static_cast<decltype(&stackSentinel)>(adjustedStorage_) + stackGuardSize / sizeof(stackSentinel),
112 [](decltype(stackSentinel)& element) -> bool
113 {
114 return element == stackSentinel;
115 });
116}
117
118size_t Stack::getHighWaterMark() const
119{

Callers 2

switchContextMethod · 0.80
tickInterruptHandlerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected