add possibility to do things after thread start.. but before setting the thread to...
[enigma2.git] / lib / base / thread.cpp
index 7a43a7bb22bf43548caa3b164a0c91edb7402539..b64ba1365bfb2376e69e36ce1da73ffb1614c4bc 100644 (file)
@@ -15,6 +15,7 @@ void eThread::thread_completed(void *ptr)
 void *eThread::wrapper(void *ptr)
 {
        eThread *p = (eThread*)ptr;
+       p->before_set_thread_alive();
        p->alive=1;
        pthread_cleanup_push( thread_completed, (void*)p );
        p->thread();