Bugfix: Set main EventQueue's owner as early as possible.

This commit is contained in:
Gunnar Beutner 2013-02-15 09:58:38 +01:00
parent 023d17c675
commit 4e03b916ff

View File

@ -139,8 +139,6 @@ void Application::RunEventLoop(void) const
{ {
boost::mutex::scoped_lock lock(m_Mutex); boost::mutex::scoped_lock lock(m_Mutex);
GetEQ().SetOwner(boost::this_thread::get_id());
#ifdef _DEBUG #ifdef _DEBUG
double nextProfile = 0; double nextProfile = 0;
#endif /* _DEBUG */ #endif /* _DEBUG */
@ -320,6 +318,7 @@ bool Application::IsMainThread(void)
void Application::SetMainThread(void) void Application::SetMainThread(void)
{ {
m_MainThreadID = boost::this_thread::get_id(); m_MainThreadID = boost::this_thread::get_id();
m_EQ.SetOwner(m_MainThreadID);
} }
/** /**