/************************** * Local functions **************************/ static orte_sstore_central_local_snapshot_info_t *create_new_handle_info(orte_sstore_base_handle_t handle) { orte_sstore_central_local_snapshot_info_t *handle_info = NULL; opal_list_item_t *item = NULL; orte_odls_child_t *child = NULL; if( NULL == active_handles ) { active_handles = OBJ_NEW(opal_list_t); } handle_info = OBJ_NEW(orte_sstore_central_local_snapshot_info_t); handle_info->id = handle; opal_list_append(active_handles, &(handle_info->super)); /* * Create a sub structure for each child */ for (item = opal_list_get_first(&orte_local_children); item != opal_list_get_end(&orte_local_children); item = opal_list_get_next(item)) { child = (orte_odls_child_t*)item; append_new_app_handle_info(handle_info, child->name); } handle_info->status = SSTORE_LOCAL_INIT; return handle_info; }
/************************** * Local functions **************************/ static orte_sstore_central_local_snapshot_info_t *create_new_handle_info(orte_sstore_base_handle_t handle) { orte_sstore_central_local_snapshot_info_t *handle_info = NULL; int i; orte_proc_t *child = NULL; if( NULL == active_handles ) { active_handles = OBJ_NEW(opal_list_t); } handle_info = OBJ_NEW(orte_sstore_central_local_snapshot_info_t); handle_info->id = handle; opal_list_append(active_handles, &(handle_info->super)); /* * Create a sub structure for each child */ for (i=0; i < orte_local_children->size; i++) { if (NULL == (child = (orte_proc_t*)opal_pointer_array_get_item(orte_local_children, i))) { continue; } append_new_app_handle_info(handle_info, &child->name); } handle_info->status = SSTORE_LOCAL_INIT; return handle_info; }