| 103 | } |
| 104 | |
| 105 | XamlThread::XamlThread() : |
| 106 | m_Dispatcher(nullptr), |
| 107 | m_Manager(nullptr) |
| 108 | { |
| 109 | m_Thread.reset(CreateThread(nullptr, 0, XamlThread::ThreadProc, this, 0, nullptr)); |
| 110 | if (!m_Thread) |
| 111 | { |
| 112 | LastErrorHandle(spdlog::level::critical, L"Failed to create XAML thread"); |
| 113 | } |
| 114 | |
| 115 | #ifdef _DEBUG |
| 116 | HresultVerify(SetThreadDescription(m_Thread.get(), APP_NAME L" XAML Island Thread"), spdlog::level::info, L"Failed to set thread description"); |
| 117 | #endif |
| 118 | |
| 119 | m_Ready.wait(); |
| 120 | } |
| 121 | |
| 122 | wil::unique_handle XamlThread::Delete() |
| 123 | { |