Update: rename mrntt=>pptr

This commit is contained in:
2026-02-18 01:14:26 -04:00
parent c0752b5e84
commit 9159e9f7b4
7 changed files with 43 additions and 44 deletions
+7 -7
View File
@@ -6,26 +6,26 @@
int main(int argc, char *argv[], char *envp[])
{
// Set the marionette thread ID before using any ComponentThread functionality
sscl::mrntt::setMarionetteThreadId(smo::SmoThreadId::MRNTT);
// Set the pptr thread ID before using any ComponentThread functionality
sscl::pptr::setPuppeteerThreadId(smo::SmoThreadId::MRNTT);
pthread_setname_np(pthread_self(), "smo:CRT:main");
/* We don't do anything inside of main()
* Main merely waits for the marionette thread to exit.
*/
std::cout << "CRT:" << __func__ << ": about to JOLT Mrntt with cmdline args"
<< '\n';
sscl::mrntt::thread->getIoService().post(
sscl::pptr::thread->getIoService().post(
[argc, argv, envp]()
{
std::cout << "Mrntt:" << __func__ << ":JOLTED: setting cmdline args"
<< '\n';
sscl::CrtCommandLineArgs::set(argc, argv, envp);
sscl::mrntt::thread->getIoService().stop();
sscl::pptr::thread->getIoService().stop();
}
);
sscl::mrntt::thread->thread.join();
sscl::pptr::thread->thread.join();
std::cout << "CRT:" << __func__ << ": Mrntt exited with code '"
<< sscl::mrntt::exitCode << "'\n";
return sscl::mrntt::exitCode;
<< sscl::pptr::exitCode << "'\n";
return sscl::pptr::exitCode;
}