#endif /* _WIN32 */
/* Set thread title. */
- Utility::SetThreadName("Main Thread");
+ Utility::SetThreadName("Main Thread", false);
/* Set command-line arguments. */
Application::SetArgC(argc);
}
#endif /* _WIN32 */
-void Utility::SetThreadName(const String& name)
+void Utility::SetThreadName(const String& name, bool os)
{
m_ThreadName.reset(new String(name));
+ if (!os)
+ return;
+
#ifdef _WIN32
WindowsSetThreadName(name.CStr());
#endif /* _WIN32 */
static String EscapeShellCmd(const String& s);
- static void SetThreadName(const String& name);
+ static void SetThreadName(const String& name, bool os = true);
static String GetThreadName(void);
private: