add functions and thread_attr