| 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 | |
| 180 | private: |
| 181 | TimerThreadManager() : mShouldStop(false), mNextHandleId(1) {} |
nothing calls this directly
no test coverage detected