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

Method ReadServer

libs/platform/platform_tests_support/test_socket.cpp:62–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 m_timeoutMs = milliseconds;
61}
62size_t TestSocket::ReadServer(std::vector<uint8_t> & destination)
63{
64 std::unique_lock lock(m_outputMutex);
65 m_outputCondition.wait_for(lock, std::chrono::milliseconds(m_timeoutMs), [this]() { return !m_output.empty(); });
66
67 size_t const outputSize = m_output.size();
68 destination.insert(destination.end(), m_output.begin(), m_output.end());
69 m_output.clear();
70 return outputSize;
71}
72} // namespace tests_support
73} // namespace platform

Callers 1

TransferLocationFunction · 0.80

Calls 6

emptyMethod · 0.45
sizeMethod · 0.45
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected