MCPcopy Create free account
hub / github.com/FastLED/FastLED / createRunnerContext

Method createRunnerContext

src/platforms/arm/teensy/coroutine_teensy.impl.hpp:220–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220void* CoroutinePlatformTeensy::createRunnerContext() FL_NOEXCEPT {
221 auto* state = new TeensyContextState(); // ok bare allocation
222 // Runner uses main thread's MSP — saved_sp filled on first contextSwitch
223 state->saved_sp = nullptr;
224 state->stack_base = nullptr;
225 state->stack_size = 0;
226 return state;
227}
228
229void CoroutinePlatformTeensy::destroyContext(void* ctx) FL_NOEXCEPT {
230 if (!ctx) return;

Callers 1

get_runner_ctxFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected