int mca_spml_yoda_component_fini(void) { if (!mca_spml_yoda.enabled) { return OSHMEM_SUCCESS; /* never selected.. return success.. */ } mca_spml_yoda.enabled = false; /* not anymore */ OBJ_DESTRUCT(&mca_spml_yoda.lock); #if OSHMEM_WAIT_COMPLETION_DEBUG == 1 condition_dbg_finalize(); #endif return OSHMEM_SUCCESS; }
int mca_spml_yoda_component_fini(void) { int rc; /* Shutdown BML */ if (OMPI_SUCCESS != (rc = mca_bml.bml_finalize())) return rc; OBJ_DESTRUCT(&mca_spml_yoda.lock); #if OSHMEM_WAIT_COMPLETION_DEBUG == 1 condition_dbg_finalize(); #endif return OSHMEM_SUCCESS; }