- add sendSignal to eThread
[enigma2.git] / lib / base / thread.cpp
index 4cff92596fea0633fe9b023f0cf15487f072858b..b75378b88ba83028a35a47e265d1c87ea3e34300 100644 (file)
@@ -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);
+}