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

Method Back

libs/base/threaded_list.hpp:75–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74
75 T Back(bool doPop)
76 {
77 std::unique_lock lock(m_condLock);
78
79 if (WaitNonEmpty(lock))
80 return T();
81
82 T res = m_list.back();
83
84 if (doPop)
85 m_list.pop_back();
86
87 return res;
88 }
89
90 size_t Size() const
91 {

Callers 5

AddGatePTForSubrouteMethod · 0.45
TestRouterFunction · 0.45
EndMethod · 0.45
UNIT_TESTFunction · 0.45

Calls 2

backMethod · 0.80
pop_backMethod · 0.45

Tested by 2

TestRouterFunction · 0.36
UNIT_TESTFunction · 0.36