X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/edd6a4323551d1ad246b0e31c0485acc8353e1cb..9c3098c8667241d18d2551a9a37ce7fbce396b71:/lib/components/file_eraser.cpp diff --git a/lib/components/file_eraser.cpp b/lib/components/file_eraser.cpp index 6cacf045..ea68eb44 100644 --- a/lib/components/file_eraser.cpp +++ b/lib/components/file_eraser.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -33,9 +34,15 @@ eBackgroundFileEraser::~eBackgroundFileEraser() void eBackgroundFileEraser::thread() { hasStarted(); + nice(5); + + setIoPrio(IOPRIO_CLASS_BE, 7); + reset(); + runLoop(); + stop_thread_timer.stop(); } @@ -68,7 +75,7 @@ void eBackgroundFileEraser::gotMessage(const Message &msg ) eDebug("file %s erased", msg.filename); free((char*)msg.filename); } - stop_thread_timer.start(2000, true); // stop thread in two seconds + stop_thread_timer.start(1000, true); // stop thread in one seconds break; case Message::quit: quit(0);