use pthread_exit()