model: get_num_threads() should be const