aboutsummaryrefslogtreecommitdiff
path: root/lib/base/thread.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-01-30 23:32:15 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-01-30 23:32:15 +0000
commit5655fee2e15bf1cfc0fe06a85e3c864dbfcd41ce (patch)
tree04b2ca81ee83f3fad88ef645d42a04c53f02563a /lib/base/thread.cpp
parent05ced3ba36c17c6a13ebb038dee5546c61576ce2 (diff)
downloadenigma2-5655fee2e15bf1cfc0fe06a85e3c864dbfcd41ce.tar.gz
enigma2-5655fee2e15bf1cfc0fe06a85e3c864dbfcd41ce.zip
add a workaround to ensure that the filepush thread take notice of the
stop thread signal even when no syscall is in progress
Diffstat (limited to 'lib/base/thread.cpp')
-rw-r--r--lib/base/thread.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/base/thread.cpp b/lib/base/thread.cpp
index 5353707d..9878856e 100644
--- a/lib/base/thread.cpp
+++ b/lib/base/thread.cpp
@@ -96,12 +96,13 @@ int eThread::sync(void)
return res; /* 0: thread is guaranteed not to run. 1: state unknown. */
}
-void eThread::sendSignal(int sig)
+int eThread::sendSignal(int sig)
{
if (m_alive)
- pthread_kill(the_thread, sig);
+ return pthread_kill(the_thread, sig);
else
eDebug("send signal to non running thread");
+ return -1;
}
void eThread::kill(bool sendcancel)