X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d63d2c3c6cbbd574dda4f8b00ebe6c661735edd5..f0273520285e28b22053eda706690774b0c8448c:/lib/base/thread.cpp diff --git a/lib/base/thread.cpp b/lib/base/thread.cpp index 4cff9259..b75378b8 100644 --- 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); +}