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

Function get_runner_ctx

src/platforms/shared/coroutine_context.cpp.hpp:51–57  ·  view source on GitHub ↗

@brief Lazy-init the runner's platform context (created on first use)

Source from the content-addressed store, hash-verified

49
50/// @brief Lazy-init the runner's platform context (created on first use)
51static void* get_runner_ctx() FL_NOEXCEPT {
52 auto& g = globals();
53 if (!g.runner_ctx) {
54 g.runner_ctx = ICoroutinePlatform::instance().createRunnerContext();
55 }
56 return g.runner_ctx;
57}
58
59//=============================================================================
60// CoroutineContext Implementation

Callers 3

entry_trampolineMethod · 0.85
resumeMethod · 0.85
suspendMethod · 0.85

Calls 1

createRunnerContextMethod · 0.80

Tested by

no test coverage detected