git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix typo
[enigma2.git]
/
lib
/
base
/
thread.cpp
diff --git
a/lib/base/thread.cpp
b/lib/base/thread.cpp
index 5353707dc9564f57f5a34476c6e8b558db360bcb..9878856eaa483007ccaa7d92f42043645c49a835 100644
(file)
--- 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. */
}
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)
{
if (m_alive)
- pthread_kill(the_thread, sig);
+
return
pthread_kill(the_thread, sig);
else
eDebug("send signal to non running thread");
else
eDebug("send signal to non running thread");
+ return -1;
}
void eThread::kill(bool sendcancel)
}
void eThread::kill(bool sendcancel)