MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / co_wait

Function co_wait

modules/core/task/src/task2.cpp:486–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484 }
485
486 scheduler_t::EventAwaitable co_wait(event_t event, bool pinned)
487 {
488 auto scheduler = scheduler_t::instance();
489 SKR_ASSERT(scheduler != nullptr);
490 auto worker = currentWorker;
491 //SKR_ASSERT(worker != nullptr);
492 return {*scheduler, event, pinned && worker ? (int)worker->id : -1};
493 }
494
495 void wait(event_t event)
496 {

Callers 1

main.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected