mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 00:24:23 +02:00
Bugfix: Set main EventQueue's owner as early as possible.
This commit is contained in:
parent
023d17c675
commit
4e03b916ff
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user