mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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…
x
Reference in New Issue
Block a user