MCPcopy Create free account
hub / github.com/CasparCG/server / do_write

Method do_write

src/protocol/util/AsyncEventServer.cpp:178–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176
177 private:
178 void do_write() // always called from the asio-service-thread
179 {
180 if (!is_writing_) {
181 std::string data;
182 if (send_queue_.try_pop(data)) {
183 write_some(std::move(data));
184 }
185 }
186 }
187
188 void stop() // always called from the asio-service-thread
189 {

Callers 1

sendMethod · 0.95

Calls 1

try_popMethod · 0.45

Tested by

no test coverage detected