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

Method signalStop

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

Source from the content-addressed store, hash-verified

185 }
186
187 void signalStop()
188 {
189 if(!isMainThread)
190 {
191 enqueue(Task{[this]{shutdown = true;}}, true);
192 }
193 else
194 {
195 shutdown = true;
196 }
197 }
198
199 void stop()
200 {

Callers 1

shutdownMethod · 0.80

Calls 1

enqueueFunction · 0.85

Tested by

no test coverage detected