From 5655fee2e15bf1cfc0fe06a85e3c864dbfcd41ce Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Tue, 30 Jan 2007 23:32:15 +0000 Subject: add a workaround to ensure that the filepush thread take notice of the stop thread signal even when no syscall is in progress --- lib/base/thread.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/base/thread.cpp') 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) -- cgit v1.2.3