1
1

ompi_proc_find_and_add: use ompi_proc_allocate in order to update *both* ompi_proc_list and ompi_proc_hash

Этот коммит содержится в:
Gilles Gouaillardet 2015-11-30 14:00:59 +09:00
родитель a7962bf996
Коммит 8227bc6320

Просмотреть файл

@ -687,12 +687,7 @@ ompi_proc_find_and_add(const ompi_process_name_t * name, bool* isnew)
if (NULL == rproc) {
*isnew = true;
rproc = OBJ_NEW(ompi_proc_t);
if (NULL != rproc) {
opal_list_append(&ompi_proc_list, (opal_list_item_t*)rproc);
*OMPI_CAST_RTE_NAME(&rproc->super.proc_name) = *name;
}
/* caller had better fill in the rest of the proc, or there's
going to be pain later... */
ompi_proc_allocate (name->jobid, name->vpid, &rproc);
}
OPAL_THREAD_UNLOCK(&ompi_proc_lock);