diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-04-30 17:58:18 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-04-30 17:58:18 +0000 |
| commit | 110c675aaad3ed8798ebf927652ae04511d31cb8 (patch) | |
| tree | dba4beeb55020a0d422e58c76b7a9f74956c1793 /lib/base/thread.cpp | |
| parent | 6d4050444c2055fdc207a860dc4cf46580431b55 (diff) | |
| download | enigma2-110c675aaad3ed8798ebf927652ae04511d31cb8.tar.gz enigma2-110c675aaad3ed8798ebf927652ae04511d31cb8.zip | |
- add sendSignal to eThread
Diffstat (limited to 'lib/base/thread.cpp')
| -rw-r--r-- | lib/base/thread.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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); +} |
