This source file includes following definitions.
- MPI_T_pvar_handle_free
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 #include "ompi/mpi/tool/mpit-internal.h"
  15 
  16 #if OPAL_HAVE_WEAK_SYMBOLS && OMPI_PROFILING_DEFINES
  17 #pragma weak MPI_T_pvar_handle_free = PMPI_T_pvar_handle_free
  18 #endif
  19 
  20 #if OMPI_PROFILING_DEFINES
  21 #include "ompi/mpi/tool/profile/defines.h"
  22 #endif
  23 
  24 
  25 int MPI_T_pvar_handle_free(MPI_T_pvar_session session, MPI_T_pvar_handle *handle)
  26 {
  27     int ret = MPI_SUCCESS;
  28 
  29     if (!mpit_is_initialized ()) {
  30         return MPI_T_ERR_NOT_INITIALIZED;
  31     }
  32 
  33     ompi_mpit_lock ();
  34 
  35     do {
  36         
  37         if (MPI_T_PVAR_HANDLE_NULL == *handle ||
  38             MPI_T_PVAR_ALL_HANDLES == *handle) {
  39             
  40 
  41             ret = MPI_T_ERR_INVALID_HANDLE;
  42             break;
  43         }
  44 
  45         ret = mca_base_pvar_handle_free (*handle);
  46         if (OPAL_SUCCESS != ret) {
  47             ret = MPI_ERR_UNKNOWN;
  48         }
  49 
  50         *handle = MPI_T_PVAR_HANDLE_NULL;
  51     } while (0);
  52 
  53     ompi_mpit_unlock ();
  54 
  55     return ret;
  56 }