DIY 3.0 data-parallel out-of-core C++ library

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List

All Classes Namespaces Functions Typedefs Groups Pages
request.hpp
1 namespace diy
2 {
3 namespace mpi
4 {
5 struct request
6 {
7 status wait() { status s; MPI_Wait(&r, &s.s); return s; }
8 inline
9 optional<status> test();
10 void cancel() { MPI_Cancel(&r); }
11
12 MPI_Request r;
13 };
14 }
15 }
16
17 diy::mpi::optional<diy::mpi::status>
18 diy::mpi::request::test()
19 {
20 status s;
21 int flag;
22 MPI_Test(&r, &flag, &s.s);
23 if (flag)
24 return s;
25 return optional<status>();
26 }
diy::mpi::status
Definition: status.hpp:5
diy::mpi::optional
Definition: optional.hpp:6
diy::mpi::request
Definition: request.hpp:5