MCPcopy Create free account
hub / github.com/FastLED/FastLED / ~TimerThreadManager

Method ~TimerThreadManager

src/platforms/stub/isr_stub.hpp:167–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 }
166
167 ~TimerThreadManager() {
168 if (mTimerThread) {
169 {
170 fl::unique_lock<fl::mutex> lock(mMutex) FL_NOEXCEPT;
171 mShouldStop = true;
172 mCondVar.notify_one(); // Wake the thread so it can exit
173 }
174 if (mTimerThread->joinable()) {
175 mTimerThread->join();
176 }
177 }
178 }
179
180private:
181 TimerThreadManager() : mShouldStop(false), mNextHandleId(1) {}

Callers

nothing calls this directly

Calls 2

joinableMethod · 0.80
notify_oneMethod · 0.45

Tested by

no test coverage detected