Skip to content

Commit 1f02c3c

Browse files
author
Damian Rouson
committed
Minor documentaion added for pre-2.0.0 mpi_caf.c
1 parent f1fb525 commit 1f02c3c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/mpi/mpi_caf.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,14 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
4949

5050

5151
#ifdef GCC_GE_7
52+
/* This data structure is owned by the library and is treated
53+
as a black box by the compiler.
54+
*/
5255
typedef struct mpi_caf_token_t
53-
{
54-
void *local_memptr;
55-
MPI_Win memptr;
56-
MPI_Win *desc;
56+
{
57+
void *local_memptr; /* local data. not stored by the compiler -- useful for freeing the memory in deregister */
58+
MPI_Win memptr; /* holds the data -- used to be the token returned by register (which now returns nothing) */
59+
MPI_Win *desc; /* useful for checking dimensions, etc. */
5760
} mpi_caf_token_t;
5861
#define TOKEN(X) &(((mpi_caf_token_t *) (X))->memptr)
5962
#else

0 commit comments

Comments
 (0)