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

Method WriteServer

libs/platform/platform_tests_support/test_socket.hpp:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 size_t ReadServer(std::vector<uint8_t> & destination);
33 template <typename Container>
34 void WriteServer(Container const & answer)
35 {
36 std::lock_guard<std::mutex> lg(m_inputMutex);
37 m_input.insert(m_input.begin(), std::begin(answer), std::end(answer));
38 m_inputCondition.notify_one();
39 }
40
41private:
42 std::atomic<bool> m_isConnected = {false};

Callers 1

TransferLocationFunction · 0.80

Calls 4

beginFunction · 0.50
endFunction · 0.50
insertMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected