| 345 | |
| 346 | private: |
| 347 | void run() override |
| 348 | { |
| 349 | QTimer timer; |
| 350 | connect(&timer, &QTimer::timeout, &timer, [this]() { |
| 351 | Q_ASSERT(QThread::currentThread() == this); |
| 352 | //Just to make sure the cache is cleared periodically |
| 353 | ModificationRevisionSet::clearCache(); |
| 354 | |
| 355 | m_data->doMoreCleanup(SOFT_CLEANUP_STEPS, TryLock); |
| 356 | }); |
| 357 | timer.start(cleanupEverySeconds * 1000); |
| 358 | exec(); |
| 359 | } |
| 360 | DUChainPrivate* m_data; |
| 361 | }; |
| 362 |
nothing calls this directly
no test coverage detected