use value_ptr in pthread_join