IObj destructor race condition fix

This commit is contained in:
Jack Andersen
2017-11-07 21:33:10 -10:00
parent d04c19a258
commit 1a2fc1d2a3
8 changed files with 31 additions and 15 deletions

View File

@@ -120,7 +120,8 @@ public:
/* Spawn client thread */
m_clientThread = std::thread([&]()
{
logvisor::RegisterThreadName("Boo Client Thread");
std::string thrName = getFriendlyName() + " Client Thread";
logvisor::RegisterThreadName(thrName.c_str());
/* Run app */
m_clientReturn = m_callback.appMain(this);
@@ -205,7 +206,8 @@ int ApplicationRun(IApplication::EPlatformType platform,
const std::vector<SystemString>& args,
bool singleInstance)
{
logvisor::RegisterThreadName("Boo Main Thread");
std::string thrName = friendlyName + " Main Thread";
logvisor::RegisterThreadName(thrName.c_str());
@autoreleasepool
{
if (!APP)