]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/mpi/detail/point_to_point.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / mpi / detail / point_to_point.hpp
index 06db34ce945d41813ff4ca6106915a4086b8d8ea..74116cf8e55daba4be3731365d4f4372f61f5bc5 100644 (file)
 #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