Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/duchain/duchain.cpp
Show First 20 Lines • Show All 269 Lines • ▼ Show 20 Line(s) | 263 | public: | |||
---|---|---|---|---|---|
270 | { | 270 | { | ||
271 | quit(); | 271 | quit(); | ||
272 | wait(); | 272 | wait(); | ||
273 | } | 273 | } | ||
274 | 274 | | |||
275 | private: | 275 | private: | ||
276 | void run() override { | 276 | void run() override { | ||
277 | QTimer timer; | 277 | QTimer timer; | ||
278 | connect(&timer, &QTimer::timeout, [this]() { | 278 | connect(&timer, &QTimer::timeout, this, [this]() { | ||
279 | //Just to make sure the cache is cleared periodically | 279 | //Just to make sure the cache is cleared periodically | ||
280 | ModificationRevisionSet::clearCache(); | 280 | ModificationRevisionSet::clearCache(); | ||
281 | 281 | | |||
282 | m_data->doMoreCleanup(SOFT_CLEANUP_STEPS, TryLock); | 282 | m_data->doMoreCleanup(SOFT_CLEANUP_STEPS, TryLock); | ||
283 | }); | 283 | }); | ||
284 | timer.start(cleanupEverySeconds * 1000); | 284 | timer.start(cleanupEverySeconds * 1000); | ||
285 | exec(); | 285 | exec(); | ||
286 | } | 286 | } | ||
▲ Show 20 Lines • Show All 1460 Lines • Show Last 20 Lines |