This source file includes following definitions.
- MPIU_Greq_query_fn
- MPIU_Greq_free_fn
- MPIU_Greq_cancel_fn
1
2
3
4
5
6 #include "mpioimpl.h"
7 #include "mpiu_greq.h"
8
9 #include <string.h>
10 #ifdef HAVE_WEAK_SYMBOLS
11
12 #define MPIO_BUILD_PROFILING
13 #include "mpioprof.h"
14 #endif
15
16 int MPIU_Greq_query_fn(void *extra_state, MPI_Status *status)
17 {
18 int foo;
19
20
21 foo = status->MPI_ERROR;
22
23
24 memcpy(status, extra_state, sizeof(MPI_Status));
25
26
27 status->MPI_ERROR = foo;
28
29
30 MPI_Status_set_cancelled(status, 0);
31
32 return MPI_SUCCESS;
33 }
34
35 int MPIU_Greq_free_fn(void *extra_state)
36 {
37
38 ADIOI_Free(extra_state);
39
40 return MPI_SUCCESS;
41 }
42 int MPIU_Greq_cancel_fn(void *extra_state, int complete)
43 {
44 MPIU_UNREFERENCED_ARG(extra_state);
45 MPIU_UNREFERENCED_ARG(complete);
46
47
48 return MPI_SUCCESS;
49 }