ompi-svn-mirror / oshmem / mca / scoll / base / scoll_base_close.c

 * Copyright (c) 2012      Mellanox Technologies, Inc.
 *                         All rights reserved. 
 * Additional copyrights may follow

#include <stdio.h>

#include "oshmem_config.h"

#include "opal/mca/mca.h"
#include "opal/mca/base/base.h"

#include "oshmem/constants.h"
#include "oshmem/mca/scoll/scoll.h"
#include "oshmem/mca/scoll/base/base.h"

int mca_scoll_base_close(void)
    /* Close all components that are still open.  This may be the opened
     * list (if we're in ompi_info), or it may be the available list (if
     * we're anywhere else). */

    if (mca_scoll_base_components_opened_valid) {
                                  &mca_scoll_base_components_opened, NULL);
        mca_scoll_base_components_opened_valid = false;
    } else if (mca_scoll_base_components_available_valid) {
        mca_scoll_base_components_available_valid = false;

    /* This call should be done after memheap close */

    /* All done */

    return OSHMEM_SUCCESS;

void mca_scoll_disable(void) 
    if (mca_scoll_sync_array)
        void* ptr = (void*)mca_scoll_sync_array;

        mca_scoll_sync_array = NULL;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.