Moved out thread function type.