summaryrefslogtreecommitdiff
path: root/boost/mpi/detail/point_to_point.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/mpi/detail/point_to_point.hpp')
-rw-r--r--boost/mpi/detail/point_to_point.hpp27
1 files changed, 14 insertions, 13 deletions
diff --git a/boost/mpi/detail/point_to_point.hpp b/boost/mpi/detail/point_to_point.hpp
index 06db34ce94..74116cf8e5 100644
--- a/boost/mpi/detail/point_to_point.hpp
+++ b/boost/mpi/detail/point_to_point.hpp
@@ -13,11 +13,16 @@
#include <boost/mpi/packed_oarchive.hpp>
#include <boost/mpi/packed_iarchive.hpp>
-namespace boost { namespace mpi { namespace detail {
+namespace boost { namespace mpi {
+
+class request;
+class communicator;
+
+namespace detail {
/** Sends a packed archive using MPI_Send. */
BOOST_MPI_DECL void
-packed_archive_send(MPI_Comm comm, int dest, int tag,
+packed_archive_send(communicator const& comm, int dest, int tag,
const packed_oarchive& ar);
/** Sends a packed archive using MPI_Isend.
@@ -26,25 +31,21 @@ packed_archive_send(MPI_Comm comm, int dest, int tag,
* for each packet will be placed into the out_requests array, up to
* num_out_requests packets. The number of packets sent will be
* returned from the function.
- *
- * @pre num_out_requests >= 2
*/
-BOOST_MPI_DECL int
-packed_archive_isend(MPI_Comm comm, int dest, int tag,
- const packed_oarchive& ar,
- MPI_Request* out_requests, int num_out_requests);
+BOOST_MPI_DECL request
+packed_archive_isend(communicator const& comm, int dest, int tag,
+ const packed_oarchive& ar);
/**
* \overload
*/
-BOOST_MPI_DECL int
-packed_archive_isend(MPI_Comm comm, int dest, int tag,
- const packed_iarchive& ar,
- MPI_Request* out_requests, int num_out_requests);
+BOOST_MPI_DECL request
+packed_archive_isend(communicator const& comm, int dest, int tag,
+ const packed_iarchive& ar);
/** Receives a packed archive using MPI_Recv. */
BOOST_MPI_DECL void
-packed_archive_recv(MPI_Comm comm, int source, int tag, packed_iarchive& ar,
+packed_archive_recv(communicator const& comm, int source, int tag, packed_iarchive& ar,
MPI_Status& status);
} } } // end namespace boost::mpi::detail