- add sendSignal to eThread
authorFelix Domke <tmbinc@elitedvb.net>
Sat, 30 Apr 2005 17:58:18 +0000 (17:58 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Sat, 30 Apr 2005 17:58:18 +0000 (17:58 +0000)
lib/base/thread.cpp
lib/base/thread.h

index 4cff92596fea0633fe9b023f0cf15487f072858b..b75378b88ba83028a35a47e265d1c87ea3e34300 100644 (file)
@@ -32,3 +32,9 @@ void eThread::kill()
        pthread_join(the_thread, 0);
        eDebug("ok");
 }
        pthread_join(the_thread, 0);
        eDebug("ok");
 }
+
+void eThread::sendSignal(int sig)
+{
+       if (alive)
+               pthread_kill(the_thread, sig);
+}
index 56b74bed3abd5544134997360e8cc88b6899d23c..80c8d92a3adf9858bbfeb0cf0c4a413f489f0883 100644 (file)
@@ -17,6 +17,7 @@ public:
 
        virtual void thread()=0;
        
 
        virtual void thread()=0;
        
+       void sendSignal(int sig);
        void kill();
 };
 
        void kill();
 };