Thread names.
This commit is contained in:
parent
3e61cc95cd
commit
76c41edfd6
|
@ -62,8 +62,8 @@ X_STATUS AudioSystem::Setup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudioSystem::ThreadStart() {
|
void AudioSystem::ThreadStart() {
|
||||||
poly::threading::set_name("AudioSystemThread");
|
poly::threading::set_name("Audio Worker");
|
||||||
xe::Profiler::ThreadEnter("AudioSystemThread");
|
xe::Profiler::ThreadEnter("Audio Worker");
|
||||||
|
|
||||||
// Initialize driver and ringbuffer.
|
// Initialize driver and ringbuffer.
|
||||||
Initialize();
|
Initialize();
|
||||||
|
|
|
@ -33,6 +33,7 @@ enum class PrimitiveType : uint32_t {
|
||||||
kRectangleList = 0x08,
|
kRectangleList = 0x08,
|
||||||
kLineLoop = 0x0C,
|
kLineLoop = 0x0C,
|
||||||
kQuadList = 0x0D,
|
kQuadList = 0x0D,
|
||||||
|
kQuadStrip = 0x0E,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class Dimension : uint32_t {
|
enum class Dimension : uint32_t {
|
||||||
|
|
|
@ -25,6 +25,9 @@ void MainWindow::Start() {
|
||||||
poly::threading::Fence fence;
|
poly::threading::Fence fence;
|
||||||
|
|
||||||
loop_.Post([&]() {
|
loop_.Post([&]() {
|
||||||
|
poly::threading::set_name("Win32 Loop");
|
||||||
|
xe::Profiler::ThreadEnter("Win32 Loop");
|
||||||
|
|
||||||
if (!Initialize()) {
|
if (!Initialize()) {
|
||||||
PFATAL("Failed to initialize main window");
|
PFATAL("Failed to initialize main window");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
Loading…
Reference in New Issue