Tweaking some thread names.

This commit is contained in:
Ben Vanik
2015-07-29 23:28:45 -07:00
parent a9b89a790b
commit e523ffcd51
3 changed files with 8 additions and 3 deletions

View File

@@ -223,6 +223,12 @@ X_STATUS XUserModule::Launch(uint32_t flags) {
entry_point_, 0,
X_CREATE_SUSPENDED, true));
// We know this is the 'main thread'.
char thread_name[32];
snprintf(thread_name, xe::countof(thread_name), "Main XThread %04X",
thread->handle());
thread->set_name(thread_name);
X_STATUS result = thread->Create();
if (XFAILED(result)) {
XELOGE("Could not create launch thread: %.8X", result);