MCPcopy Create free account
hub / github.com/FastLED/FastLED / stop

Method stop

tests/fl/stl/asio/http/test_utils/server_thread.cpp.hpp:63–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void ServerThread::stop() {
64 // Always set running to false and join, even if already false.
65 mData->mRunning.store(false);
66
67 if (mData->mThread.joinable()) {
68 mData->mThread.join();
69 }
70}
71
72bool ServerThread::isRunning() const { return mData->mRunning.load(); }
73

Callers 3

mainFunction · 0.45
~ServerGuardMethod · 0.45
FL_TEST_FILEFunction · 0.45

Calls 2

joinableMethod · 0.80
storeMethod · 0.45

Tested by

no test coverage detected