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

Method exitCurrent

src/platforms/stub/coroutine_stub.impl.hpp:395–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395void ICoroutineTask::exitCurrent() FL_NOEXCEPT {
396 auto* ctx = runningStubCoroutineContext();
397 if (ctx) {
398 ctx->set_completed(true);
399 // Signal "done" to unblock the main thread's second acquire()
400 fl::detail::CoroutineRunner::instance().get_main_thread_semaphore().release();
401 }
402 // Block forever — thread will be joined during cleanup
403 while (true) {
404 fl::this_thread::sleep_for(fl::chrono::seconds(1)); // ok sleep for
405 }
406}
407
408} // namespace platforms
409} // namespace fl

Callers

nothing calls this directly

Calls 2

sleep_forFunction · 0.70
releaseMethod · 0.45

Tested by

no test coverage detected