MCPcopy Create free account
hub / github.com/Kitware/CMake / stopWithLock

Method stopWithLock

Utilities/cmcppdap/src/network.cpp:77–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 bool isRunning() { return !stopped; }
76
77 void stopWithLock() {
78 if (!stopped.exchange(true)) {
79 socket->close();
80 thread.join();
81 }
82 }
83
84 std::mutex mutex;
85 std::thread thread;

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected