Thread names.

This commit is contained in:
Ben Vanik 2015-01-03 03:42:27 -08:00
parent 3e61cc95cd
commit 76c41edfd6
3 changed files with 6 additions and 2 deletions

View File

@ -62,8 +62,8 @@ X_STATUS AudioSystem::Setup() {
}
void AudioSystem::ThreadStart() {
poly::threading::set_name("AudioSystemThread");
xe::Profiler::ThreadEnter("AudioSystemThread");
poly::threading::set_name("Audio Worker");
xe::Profiler::ThreadEnter("Audio Worker");
// Initialize driver and ringbuffer.
Initialize();

View File

@ -33,6 +33,7 @@ enum class PrimitiveType : uint32_t {
kRectangleList = 0x08,
kLineLoop = 0x0C,
kQuadList = 0x0D,
kQuadStrip = 0x0E,
};
enum class Dimension : uint32_t {

View File

@ -25,6 +25,9 @@ void MainWindow::Start() {
poly::threading::Fence fence;
loop_.Post([&]() {
poly::threading::set_name("Win32 Loop");
xe::Profiler::ThreadEnter("Win32 Loop");
if (!Initialize()) {
PFATAL("Failed to initialize main window");
exit(1);