MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / ThreadInit

Method ThreadInit

TranslucentTB/uwp/xamlthread.cpp:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void XamlThread::ThreadInit()
50{
51 try
52 {
53 winrt::init_apartment(winrt::apartment_type::single_threaded);
54 }
55 HresultErrorCatch(spdlog::level::critical, L"Failed to initialize thread apartment");
56
57 m_Manager = UWP::CreateXamlManager();
58 m_Dispatcher = winrt::Windows::System::DispatcherQueue::GetForCurrentThread();
59}
60
61bool XamlThread::PreTranslateMessage(const MSG &msg)
62{

Callers 1

ThreadProcMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected