D17741: avoid blocking kio_http_cache_cleaner and ensure exit with session

Martin Koller noreply at phabricator.kde.org
Sat Dec 22 19:44:50 GMT 2018


mkoller created this revision.
mkoller added a reviewer: dfaure.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
mkoller requested review of this revision.

REVISION SUMMARY
  Currently when logging out, kio_http_cache_cleaner stays alive and blocks in 
  QCoreApplication::processEvents(QEventLoop::WaitForMoreEvents);
  forever.
  
  This patch avoids this blocking and ensures that the main loop will exit when the session bus is no longer connected.

TEST PLAN
  logging in, check CPU load of kio_http_cache_cleaner, log out, check if kio_http_cache_cleaner still runs.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D17741

AFFECTED FILES
  http_cache_cleaner.cpp

To: mkoller, dfaure
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20181222/37a101ac/attachment.html>


More information about the Kde-frameworks-devel mailing list