Move Log call before starting application (#1453)
This commit is contained in:
Родитель
e225a7ba09
Коммит
45a52ebff5
|
@ -129,6 +129,8 @@ IN_PROCESS_APPLICATION::LoadManagedApplication()
|
|||
FALSE, // not set
|
||||
nullptr)); // name
|
||||
|
||||
LOG_INFO(L"Waiting for initialization");
|
||||
|
||||
m_workerThread = std::thread([](std::unique_ptr<IN_PROCESS_APPLICATION, IAPPLICATION_DELETER> application)
|
||||
{
|
||||
LOG_INFO(L"Starting in-process worker thread");
|
||||
|
@ -136,8 +138,6 @@ IN_PROCESS_APPLICATION::LoadManagedApplication()
|
|||
LOG_INFO(L"Stopping in-process worker thread");
|
||||
}, ::ReferenceApplication(this));
|
||||
|
||||
LOG_INFO(L"Waiting for initialization");
|
||||
|
||||
const HANDLE waitHandles[2] = { m_pInitializeEvent, m_workerThread.native_handle() };
|
||||
|
||||
// Wait for shutdown request
|
||||
|
|
Загрузка…
Ссылка в новой задаче