If a callback is set in the state machine, and the state doesn't yet exist, create it
This commit was SVN r26947.
Этот коммит содержится в:
родитель
431d5361ed
Коммит
0d878937fe
@ -151,7 +151,15 @@ int orte_state_base_set_job_state_callback(orte_job_state_t state,
|
|||||||
return ORTE_SUCCESS;
|
return ORTE_SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ORTE_ERR_NOT_FOUND;
|
|
||||||
|
/* if not found, assume SYS priority and install it */
|
||||||
|
st = OBJ_NEW(orte_state_t);
|
||||||
|
st->job_state = state;
|
||||||
|
st->cbfunc = cbfunc;
|
||||||
|
st->priority = ORTE_SYS_PRI;
|
||||||
|
opal_list_append(&orte_job_states, &(st->super));
|
||||||
|
|
||||||
|
return ORTE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
int orte_state_base_set_job_state_priority(orte_job_state_t state,
|
int orte_state_base_set_job_state_priority(orte_job_state_t state,
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user