X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/e82ff190baa45424879466594255109d98aceee0..HEAD:/lib/base/thread.h?ds=inline diff --git a/lib/base/thread.h b/lib/base/thread.h index 819c51fe..8ee96594 100644 --- a/lib/base/thread.h +++ b/lib/base/thread.h @@ -51,7 +51,7 @@ public: /* result: 0 - thread is not alive 1 - thread state unknown */ int sync(); - void sendSignal(int sig); + int sendSignal(int sig); /* join the thread, i.e. busywait until thread has finnished. */ void kill(bool sendcancel=false); @@ -59,7 +59,7 @@ private: pthread_t the_thread; static void *wrapper(void *ptr); - int m_alive; + int m_alive, m_started; static void thread_completed(void *p); eSemaphore m_state;