From 110c675aaad3ed8798ebf927652ae04511d31cb8 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Sat, 30 Apr 2005 17:58:18 +0000 Subject: - add sendSignal to eThread --- lib/base/thread.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '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); +} -- cgit v1.2.3