diff options
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); +} |
