pthread_exit added