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

Method takeAction

modules/core/core/src/async/service_thread.cpp:153–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153ServiceThread::Status ServiceThread::takeAction() SKR_NOEXCEPT
154{
155 const auto act = get_action();
156 if (act != kActionNone)
157 {
158 const Status lut[] = { kStatusRunning, kStatusStopped, kStatusExitted };
159 const auto out = lut[act - 1];
160 setStatus(out);
161 setAction(kActionNone);
162 return out;
163 }
164 return get_status();
165}
166
167AsyncResult ServiceThread::ServiceFunc::run() SKR_NOEXCEPT
168{

Callers 1

runMethod · 0.80

Calls 1

setStatusFunction · 0.85

Tested by

no test coverage detected