/* * Release the list items in the list. * Reset list pointers to be NULL */ static void opal_list_destruct(opal_list_t *list) { opal_list_item_t *it; while (NULL != (it = opal_list_remove_first(list))) { OBJ_RELEASE(it); } opal_list_construct(list); }
/* * Reset all the pointers to be NULL -- do not actually destroy * anything. */ static void opal_list_destruct(opal_list_t *list) { opal_list_construct(list); }