From 2c76959422e7f57e43a359ff1d5ceb74dc4232d5 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Mon, 3 Apr 2006 21:03:16 +0000 Subject: follow eThread changes: mainly thread_running -> sync, hasStarted() --- lib/components/file_eraser.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/components') diff --git a/lib/components/file_eraser.cpp b/lib/components/file_eraser.cpp index bc26bf7c..6cacf045 100644 --- a/lib/components/file_eraser.cpp +++ b/lib/components/file_eraser.cpp @@ -26,14 +26,13 @@ void eBackgroundFileEraser::idle() eBackgroundFileEraser::~eBackgroundFileEraser() { messages.send(Message::quit); - if ( thread_running() ) - kill(); if (instance==this) instance=0; } void eBackgroundFileEraser::thread() { + hasStarted(); nice(5); reset(); runLoop(); @@ -51,8 +50,7 @@ void eBackgroundFileEraser::erase(const char *filename) else { messages.send(Message(Message::erase, strdup(buf))); - if (!thread_running()) - run(); + run(); } } } -- cgit v1.2.3