Skip to content

Commit

Permalink
Be less intrusive into request implementation.
Browse files Browse the repository at this point in the history
refs #100
  • Loading branch information
aminiussi committed Oct 28, 2019
1 parent a7379ac commit a96b874
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/communicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,10 @@ bool operator==(const communicator& comm1, const communicator& comm2)
#if BOOST_MPI_VERSION >= 3
request communicator::ibarrier() const
{
request::trivial_handler* handler = new request::trivial_handler;
BOOST_MPI_CHECK_RESULT(MPI_Ibarrier, (*this, &handler->m_request));
return request(handler);
MPI_Request *c_ptr;
request req = request::make_trivial(c_ptr);
BOOST_MPI_CHECK_RESULT(MPI_Ibarrier, (*this, c_ptr));
return req;
}
#endif

Expand Down

0 comments on commit a96b874

Please sign in to comment.