aboutsummaryrefslogtreecommitdiff
path: root/lib/components
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-04-03 21:03:16 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-04-03 21:03:16 +0000
commit2c76959422e7f57e43a359ff1d5ceb74dc4232d5 (patch)
tree765e6b96e65f2c5f43146a68bb5fd305ad934747 /lib/components
parent0b93abf527c246663351f518fea47e28cc4eabc7 (diff)
downloadenigma2-2c76959422e7f57e43a359ff1d5ceb74dc4232d5.tar.gz
enigma2-2c76959422e7f57e43a359ff1d5ceb74dc4232d5.zip
follow eThread changes: mainly thread_running -> sync, hasStarted()
Diffstat (limited to 'lib/components')
-rw-r--r--lib/components/file_eraser.cpp6
1 files changed, 2 insertions, 4 deletions
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();
}
}
}