aboutsummaryrefslogtreecommitdiff
path: root/lib/base/thread.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-03 10:47:52 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-03 10:47:52 +0000
commitdf88846fa78ebe40f935e0486462af0fc0ea81e9 (patch)
tree886a9ea538e51656265e98440b32a1b08d657028 /lib/base/thread.cpp
parent2702c8f3dd44e91878013dc2ce552526e90046ba (diff)
downloadenigma2-df88846fa78ebe40f935e0486462af0fc0ea81e9.tar.gz
enigma2-df88846fa78ebe40f935e0486462af0fc0ea81e9.zip
add possibility to do things after thread start.. but before setting the thread to alive
Diffstat (limited to 'lib/base/thread.cpp')
-rw-r--r--lib/base/thread.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/base/thread.cpp b/lib/base/thread.cpp
index 7a43a7bb..b64ba136 100644
--- a/lib/base/thread.cpp
+++ b/lib/base/thread.cpp
@@ -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();