Caching tags on communicator


Up: Tools for writing libraries Next: Caching tags on communicator II Previous: Example: Managing tags


#include "mpi.h"

static int MPE_Tag_keyval = MPI_KEYVAL_INVALID;

/*
   Private routine to delete internal storage when a communicator is freed.
 */
int MPE_DelTag( comm, keyval, attr_val, extra_state )
MPI_Comm *comm;
int      *keyval;
void     *attr_val, *extra_state;
{
free( attr_val );
return MPI_SUCCESS;
}



Up: Tools for writing libraries Next: Caching tags on communicator II Previous: Example: Managing tags