git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- add timer, RecordTimer
[enigma2.git]
/
lib
/
base
/
thread.cpp
diff --git
a/lib/base/thread.cpp
b/lib/base/thread.cpp
index 4cff92596fea0633fe9b023f0cf15487f072858b..b75378b88ba83028a35a47e265d1c87ea3e34300 100644
(file)
--- a/
lib/base/thread.cpp
+++ b/
lib/base/thread.cpp
@@
-32,3
+32,9
@@
void eThread::kill()
pthread_join(the_thread, 0);
eDebug("ok");
}
+
+void eThread::sendSignal(int sig)
+{
+ if (alive)
+ pthread_kill(the_thread, sig);
+}