mirror of https://github.com/Icinga/icinga2.git
parent
9452bc7095
commit
2f58071b6f
|
@ -43,19 +43,19 @@ void Logger::Start(void)
|
|||
{
|
||||
DynamicObject::Start();
|
||||
|
||||
boost::mutex::scoped_lock(m_Mutex);
|
||||
boost::mutex::scoped_lock lock(m_Mutex);
|
||||
m_Loggers.insert(GetSelf());
|
||||
}
|
||||
|
||||
void Logger::Stop(void)
|
||||
{
|
||||
boost::mutex::scoped_lock(m_Mutex);
|
||||
boost::mutex::scoped_lock lock(m_Mutex);
|
||||
m_Loggers.erase(GetSelf());
|
||||
}
|
||||
|
||||
std::set<Logger::Ptr> Logger::GetLoggers(void)
|
||||
{
|
||||
boost::mutex::scoped_lock(m_Mutex);
|
||||
boost::mutex::scoped_lock lock(m_Mutex);
|
||||
return m_Loggers;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue