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