aboutsummaryrefslogtreecommitdiff
path: root/lib/base/thread.cpp
diff options
context:
space:
mode:
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();