|
TIMPI
|
Encapsulates the MPI_Request. More...
#include <request.h>
Public Member Functions | |
| Request () | |
| Request (const request &r) | |
| Request (const Request &other) | |
| void | cleanup () |
| Request & | operator= (const Request &other) |
| Request & | operator= (const request &r) |
| ~Request () | |
| request * | get () |
| const request * | get () const |
| Status | wait () |
| bool | test () |
| bool | test (status &status) |
| void | add_prior_request (const Request &req) |
| void | add_post_wait_work (PostWaitWork *work) |
Static Public Attributes | |
| static const request | null_request = MPI_REQUEST_NULL |
Private Attributes | |
| request | _request |
| std::unique_ptr< Request > | _prior_request |
| std::pair< std::vector< PostWaitWork * >, unsigned int > * | post_wait_work |
Friends | |
| std::size_t | waitany (std::vector< Request > &) |
| Wait for at least one non-blocking operation to finish. | |
| TIMPI::Request::Request | ( | ) |
Definition at line 48 of file request.C.
Referenced by add_prior_request(), operator=(), and Request().
Definition at line 58 of file request.C.
References _prior_request, TIMPI::cast_int(), post_wait_work, and Request().
| void TIMPI::Request::add_post_wait_work | ( | PostWaitWork * | work | ) |
Definition at line 204 of file request.C.
References TIMPI::cast_int(), and post_wait_work.
Definition at line 190 of file request.C.
References _prior_request, TIMPI::cast_int(), and Request().
| void TIMPI::Request::cleanup | ( | ) |
Definition at line 71 of file request.C.
References TIMPI::cast_int(), and post_wait_work.
Referenced by operator=(), operator=(), and ~Request().
|
inline |
Definition at line 84 of file request.h.
References _request.
Referenced by TIMPI::Communicator::nonblocking_barrier(), TIMPI::Communicator::send(), and TIMPI::Communicator::send().
Definition at line 92 of file request.C.
References _prior_request, _request, TIMPI::cast_int(), cleanup(), post_wait_work, and Request().
Definition at line 109 of file request.C.
References _request, TIMPI::cast_int(), cleanup(), and post_wait_work.
| bool TIMPI::Request::test | ( | ) |
Definition at line 153 of file request.C.
References _request, TIMPI::cast_int(), and null_request.
Referenced by TIMPI::detail::push_parallel_nbx_helper().
Definition at line 174 of file request.C.
References _request, and TIMPI::cast_int().
| Status TIMPI::Request::wait | ( | ) |
Definition at line 121 of file request.C.
References _prior_request, _request, TIMPI::cast_int(), and post_wait_work.
Referenced by TIMPI::detail::push_parallel_nbx_helper().
|
friend |
Wait for at least one non-blocking operation to finish.
Return the index of the request which completed.
Definition at line 219 of file request.C.
|
private |
Definition at line 116 of file request.h.
Referenced by add_prior_request(), operator=(), Request(), and wait().
|
private |
Definition at line 114 of file request.h.
Referenced by get(), get(), operator=(), operator=(), test(), test(), and wait().
|
static |
Definition at line 111 of file request.h.
Referenced by test(), and testNonblockingWaitany().
|
private |
Definition at line 124 of file request.h.
Referenced by add_post_wait_work(), cleanup(), operator=(), operator=(), Request(), and wait().