MCPcopy Create free account
hub / github.com/comaps/comaps / ProcessList

Method ProcessList

libs/base/threaded_list.hpp:22–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20public:
21 template <typename Fn>
22 void ProcessList(Fn const & fn)
23 {
24 std::unique_lock lock(m_condLock);
25
26 bool const hadElements = !m_list.empty();
27
28 fn(m_list);
29
30 bool const hasElements = !m_list.empty();
31
32 if (!hadElements && hasElements)
33 m_Cond.notify_all();
34 }
35
36 void PushBack(T const & t)
37 {

Callers 1

StopMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected