Exceptions: Straight line convention refactor
This commit is contained in:
+7
-11
@@ -106,7 +106,7 @@ Mind::getMindThreads() const
|
||||
return mindThreads;
|
||||
}
|
||||
|
||||
mrntt::MrnttViralNonPostingInvokerT<bool> Mind::initializeCReq()
|
||||
mrntt::MrnttViralNonPostingInvokerT<void> Mind::initializeCReq()
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -125,20 +125,16 @@ mrntt::MrnttViralNonPostingInvokerT<bool> Mind::initializeCReq()
|
||||
co_await startAllPuppetThreadsCReq();
|
||||
std::cout << "Mrntt: All mind threads started." << "\n";
|
||||
|
||||
bool bodyInitialized = co_await body.initializeCReq();
|
||||
co_await body.initializeCReq();
|
||||
std::cout << "Mrntt: Body component initialized." << "\n";
|
||||
|
||||
co_return bodyInitialized;
|
||||
co_return;
|
||||
}
|
||||
|
||||
mrntt::MrnttViralNonPostingInvokerT<bool> Mind::finalizeCReq()
|
||||
mrntt::MrnttViralNonPostingInvokerT<void> Mind::finalizeCReq()
|
||||
{
|
||||
bool bodyFinalized = co_await body.finalizeCReq();
|
||||
if (!bodyFinalized) {
|
||||
std::cerr << "Mrntt: Body component failed to finalize." << "\n";
|
||||
} else {
|
||||
std::cout << "Mrntt: Body component finalized." << "\n";
|
||||
}
|
||||
co_await body.finalizeCReq();
|
||||
std::cout << "Mrntt: Body component finalized." << "\n";
|
||||
|
||||
co_await joltAllPuppetThreadsCReq();
|
||||
std::cout << "Mrntt: All mind threads JOLTed for finalization." << "\n";
|
||||
@@ -146,7 +142,7 @@ mrntt::MrnttViralNonPostingInvokerT<bool> Mind::finalizeCReq()
|
||||
co_await exitAllPuppetThreadsCReq();
|
||||
std::cout << "Mrntt: All mind threads exited." << "\n";
|
||||
|
||||
co_return bodyFinalized;
|
||||
co_return;
|
||||
}
|
||||
|
||||
} // namespace smo
|
||||
|
||||
Reference in New Issue
Block a user