Point-to-point communications using 'ISerializer'. More...
#include <arccore/message_passing/PointToPointSerializerMng.h>
Classes | |
| class | Impl |
Public Member Functions | |
| PointToPointSerializerMng (IMessagePassingMng *mpm) | |
| PointToPointSerializerMng (const PointToPointSerializerMng &)=delete | |
| PointToPointSerializerMng & | operator= (const PointToPointSerializerMng &)=delete |
| IMessagePassingMng * | messagePassingMng () const |
| Associated message manager. | |
| void | processPendingMessages () |
| Sends the messages from the list that have not yet been processed. | |
| Integer | waitMessages (eWaitType wt, std::function< void(ISerializeMessage *)> functor) |
| Waits for the messages to finish execution. | |
| bool | hasMessages () const |
| Indicates if there are remaining messages that have not yet finished. | |
| Ref< ISerializeMessage > | addReceiveMessage (MessageRank sender_rank) |
| Creates a receiving serialization message. | |
| Ref< ISerializeMessage > | addReceiveMessage (MessageId message_id) |
| Creates a receiving serialization message. | |
| Ref< ISerializeMessage > | addSendMessage (MessageRank receiver_rank) |
| Creates a sending serialization message. | |
| void | setDefaultTag (MessageTag default_tag) |
| Default tag used for messages. | |
| void | setStrategy (ISerializeMessage::eStrategy strategy) |
| Strategy used for messages. | |
Point-to-point communications using 'ISerializer'.
Definition at line 39 of file PointToPointSerializerMng.h.
| Arcane::MessagePassing::PointToPointSerializerMng::PointToPointSerializerMng | ( | IMessagePassingMng * | mpm | ) |
Definition at line 93 of file PointToPointSerializerMng.cc.
| Arcane::MessagePassing::PointToPointSerializerMng::~PointToPointSerializerMng | ( | ) |
Definition at line 102 of file PointToPointSerializerMng.cc.
| Ref< ISerializeMessage > Arcane::MessagePassing::PointToPointSerializerMng::addReceiveMessage | ( | MessageId | message_id | ) |
Creates a receiving serialization message.
sender_rank is the rank of the sender of the corresponding message. It is possible to specify a null rank to indicate that one wishes to receive from anyone.
Definition at line 191 of file PointToPointSerializerMng.cc.
| Ref< ISerializeMessage > Arcane::MessagePassing::PointToPointSerializerMng::addReceiveMessage | ( | MessageRank | sender_rank | ) |
Creates a receiving serialization message.
sender_rank is the rank of the sender of the corresponding message. It is possible to specify a null rank to indicate that one wishes to receive from anyone.
Definition at line 180 of file PointToPointSerializerMng.cc.
| Ref< ISerializeMessage > Arcane::MessagePassing::PointToPointSerializerMng::addSendMessage | ( | MessageRank | receiver_rank | ) |
Creates a sending serialization message.
Definition at line 169 of file PointToPointSerializerMng.cc.
| bool Arcane::MessagePassing::PointToPointSerializerMng::hasMessages | ( | ) | const |
Indicates if there are remaining messages that have not yet finished.
Definition at line 138 of file PointToPointSerializerMng.cc.
Referenced by setDefaultTag(), and setStrategy().
| IMessagePassingMng * Arcane::MessagePassing::PointToPointSerializerMng::messagePassingMng | ( | ) | const |
Associated message manager.
Definition at line 111 of file PointToPointSerializerMng.cc.
| void Arcane::MessagePassing::PointToPointSerializerMng::processPendingMessages | ( | ) |
Sends the messages from the list that have not yet been processed.
It is generally not necessary to call this method because it is done automatically when calling waitMessages().
Definition at line 120 of file PointToPointSerializerMng.cc.
| void Arcane::MessagePassing::PointToPointSerializerMng::setDefaultTag | ( | MessageTag | default_tag | ) |
Default tag used for messages.
This method can only be called if there are no messages currently in progress (hasMessages()==false). All ranks of messagePassingMng() must use the same tag.
Definition at line 147 of file PointToPointSerializerMng.cc.
References ARCCORE_FATAL, and hasMessages().
| void Arcane::MessagePassing::PointToPointSerializerMng::setStrategy | ( | ISerializeMessage::eStrategy | strategy | ) |
Strategy used for messages.
This method can only be called if there are no messages currently in progress (hasMessages()==false). All ranks of messagePassingMng() must use the same strategy.
Definition at line 158 of file PointToPointSerializerMng.cc.
References ARCCORE_FATAL, and hasMessages().
| Integer Arcane::MessagePassing::PointToPointSerializerMng::waitMessages | ( | eWaitType | wt, |
| std::function< void(ISerializeMessage *)> | functor ) |
Waits for the messages to finish execution.
The wait type is specified by wt.
Definition at line 129 of file PointToPointSerializerMng.cc.