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
1 changed files with 1 additions and 2 deletions

View File

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