1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 #ifndef OMPI_GEN_REQUESTX_H
21 #define OMPI_GEN_REQUESTX_H
22
23 #include "ompi_config.h"
24 #include "ompi/request/grequest.h"
25
26 BEGIN_C_DECLS
27
28 typedef int (ompi_grequestx_wait_function)(int, void **, double, MPI_Status *);
29 typedef int ompi_grequestx_class;
30
31
32
33 OMPI_DECLSPEC int ompi_grequestx_start(
34 MPI_Grequest_query_function *gquery,
35 MPI_Grequest_free_function *gfree,
36 MPI_Grequest_cancel_function *gcancel,
37 ompi_grequestx_poll_function *gpoll,
38 void* gstate,
39 ompi_request_t** request);
40
41 OMPI_DECLSPEC int ompi_grequestx_class_create(
42 MPI_Grequest_query_function *gquery,
43 MPI_Grequest_free_function *gfree,
44 MPI_Grequest_cancel_function *gcancel,
45 ompi_grequestx_poll_function *gpoll,
46 ompi_grequestx_wait_function *gwait,
47 ompi_grequestx_class *greq_class);
48
49 OMPI_DECLSPEC int ompi_grequestx_class_allocate(
50 ompi_grequestx_class greq_class,
51 void *extra_state,
52 ompi_request_t** request);
53
54 END_C_DECLS
55
56 #endif