Move Log call before starting application (#1453)
This commit is contained in:
parent
e225a7ba09
commit
45a52ebff5
|
|
@ -129,6 +129,8 @@ IN_PROCESS_APPLICATION::LoadManagedApplication()
|
||||||
FALSE, // not set
|
FALSE, // not set
|
||||||
nullptr)); // name
|
nullptr)); // name
|
||||||
|
|
||||||
|
LOG_INFO(L"Waiting for initialization");
|
||||||
|
|
||||||
m_workerThread = std::thread([](std::unique_ptr<IN_PROCESS_APPLICATION, IAPPLICATION_DELETER> application)
|
m_workerThread = std::thread([](std::unique_ptr<IN_PROCESS_APPLICATION, IAPPLICATION_DELETER> application)
|
||||||
{
|
{
|
||||||
LOG_INFO(L"Starting in-process worker thread");
|
LOG_INFO(L"Starting in-process worker thread");
|
||||||
|
|
@ -136,8 +138,6 @@ IN_PROCESS_APPLICATION::LoadManagedApplication()
|
||||||
LOG_INFO(L"Stopping in-process worker thread");
|
LOG_INFO(L"Stopping in-process worker thread");
|
||||||
}, ::ReferenceApplication(this));
|
}, ::ReferenceApplication(this));
|
||||||
|
|
||||||
LOG_INFO(L"Waiting for initialization");
|
|
||||||
|
|
||||||
const HANDLE waitHandles[2] = { m_pInitializeEvent, m_workerThread.native_handle() };
|
const HANDLE waitHandles[2] = { m_pInitializeEvent, m_workerThread.native_handle() };
|
||||||
|
|
||||||
// Wait for shutdown request
|
// Wait for shutdown request
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue