Esempio n. 1
0
/*
 * 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);
}
Esempio n. 2
0
/*
 * 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);
}