MCPcopy Create free account
hub / github.com/Icinga/icinga2 / AddClient

Method AddClient

lib/remote/eventqueue.cpp:54–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void EventQueue::AddClient(void *client)
55{
56 std::unique_lock<std::mutex> lock(m_Mutex);
57
58 auto result = m_Events.insert(std::make_pair(client, std::deque<Dictionary::Ptr>()));
59 ASSERT(result.second);
60
61#ifndef I2_DEBUG
62 (void)result;
63#endif /* I2_DEBUG */
64}
65
66void EventQueue::RemoveClient(void *client)
67{

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected