do always call thread cleanup handler
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 2 Mar 2006 11:11:54 +0000 (11:11 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 2 Mar 2006 11:11:54 +0000 (11:11 +0000)
lib/base/thread.cpp

index 08ddc1f..a3edef3 100644 (file)
@@ -19,7 +19,7 @@ void *eThread::wrapper(void *ptr)
        pthread_cleanup_push( thread_completed, (void*)p );
        p->thread();
        pthread_exit(0);
-       pthread_cleanup_pop(0);
+       pthread_cleanup_pop(1);
        return 0;
 }