Commit 895b5bd5 authored by James Dinan's avatar James Dinan
Browse files

[svn-r8962] Moved definition of MPIX_Mutex type into mutex.c to avoid type issues in the

public header.
parent a6016c3e
......@@ -7,9 +7,6 @@
#ifndef MPIX_H_INCLUDED
#define MPIX_H_INCLUDED
#include <stdint.h>
#include <inttypes.h>
#include "mpi.h"
/* Prototypes in this file must be interpreted as C routines when this header
......@@ -23,14 +20,7 @@ int MPIX_Group_comm_create(MPI_Comm old_comm, MPI_Group group, int tag, MPI_Comm
/* RMA Mutexes extension declarations: */
struct mpix_mutex_s {
int my_count;
int max_count;
MPI_Comm comm;
MPI_Win *windows;
uint8_t **bases;
};
struct mpix_mutex_s;
typedef struct mpix_mutex_s * MPIX_Mutex;
MPIX_Mutex MPIX_Mutex_create (int count, MPI_Comm comm);
......
......@@ -17,6 +17,7 @@
#include <mpi.h>
#include <mpix.h>
#include <mpitypedefs.h>
#define MPI_MUTEX_TAG 100
......@@ -26,6 +27,14 @@
#define debug_print(...)
#endif
struct mpix_mutex_s {
int my_count;
int max_count;
MPI_Comm comm;
MPI_Win *windows;
uint8_t **bases;
};
/* TODO: Make these all no-ops for sequential runs */
/** Create a group of MPI mutexes. Collective onthe MPI group.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment