1
1

If a callback is set in the state machine, and the state doesn't yet exist, create it

This commit was SVN r26947.
Этот коммит содержится в:
Ralph Castain 2012-08-03 21:43:36 +00:00
родитель 431d5361ed
Коммит 0d878937fe

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

@ -151,7 +151,15 @@ int orte_state_base_set_job_state_callback(orte_job_state_t state,
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,