src/mca/base/prte_mca_base_component_repository.c
/*
 * Finalize the repository -- close everything that's still open.
 */
Finalize the repository -- close everything that's still open.
Finalize the repository -- close everything that ' s still open .
void prte_mca_base_component_repository_finalize(void)
{
    if (!initialized) {
        return;
    }
    initialized = false;
#if PRTE_HAVE_DL_SUPPORT
    prte_list_t *component_list;
    void *node, *key;
    size_t key_size;
    int ret;
    ret = prte_hash_table_get_first_key_ptr(&prte_mca_base_component_repository, &key, &key_size,
                                            (void **) &component_list, &node);
    while (PRTE_SUCCESS == ret) {
        PRTE_LIST_RELEASE(component_list);
        ret = prte_hash_table_get_next_key_ptr(&prte_mca_base_component_repository, &key, &key_size,
                                               (void **) &component_list, node, &node);
    }
    (void) prte_mca_base_framework_close(&prte_prtedl_base_framework);
    PRTE_DESTRUCT(&prte_mca_base_component_repository);
#endif
}
void prte_mca_base_component_repository_finalize ( void ) { if ( ! initialized ) { return ; } initialized = false ; #if PRTE_HAVE_DL_SUPPORT prte_list_t * component_list ; void * node , * key ; size_t key_size ; int ret ; ret = prte_hash_table_get_first_key_ptr ( & prte_mca_base_component_repository , & key , & key_size , ( void * * ) & component_list , & node ) ; while ( PRTE_SUCCESS == ret ) { PRTE_LIST_RELEASE ( component_list ) ; ret = prte_hash_table_get_next_key_ptr ( & prte_mca_base_component_repository , & key , & key_size , ( void * * ) & component_list , node , & node ) ; } ( void ) prte_mca_base_framework_close ( & prte_prtedl_base_framework ) ; PRTE_DESTRUCT ( & prte_mca_base_component_repository ) ; #endif }
Finalize the repository -- close everything that's still open.
Finalize the repository -- close everything that ' s still open .