MCPcopy Create free account
hub / github.com/OriginQ/QPanda-2 / stop_heart_thread

Method stop_heart_thread

Extensions/PilotOSMachine/TCPClient.h:239–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237 }
238
239 void stop_heart_thread()
240 {
241 m_b_stop = true;
242 if (m_thread_heart.joinable()) {
243 this_thread::sleep_for(std::chrono::milliseconds(20));
244 m_thread_heart.join();
245 }
246 }
247
248 void close_socket()
249 {

Callers 3

tcp_recvMethod · 0.80
synchronous_executeMethod · 0.80

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected