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

Method shutdown

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

Source from the content-addressed store, hash-verified

670 }
671
672 void scheduler_t::shutdown()
673 {
674 SkrZoneScopedN("Scheduler::Shutdown");
675 SKR_ASSERT(initialized);
676 for(size_t i = 0; i < config.numThreads; ++i)
677 ((Worker*)workers[i])->signalStop();
678 for(size_t i = 0; i < config.numThreads; ++i)
679 ((Worker*)workers[i])->stop();
680 for(size_t i = 0; i < config.numThreads; ++i)
681 SkrDelete((Worker*)workers[i]);
682
683 }
684
685 void scheduler_t::bind()
686 {

Callers 2

mainFunction · 0.45
~Task2Method · 0.45

Calls 3

SkrDeleteFunction · 0.85
signalStopMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected