Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
PointToPointSerializerMng.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* PointToPointSerializerMng.h (C) 2000-2020 */
9/* */
10/* Communications point à point par des 'ISerializer'. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCCORE_MESSAGEPASSING_POINTOTPOINTSERIALIZERMNG_H
13#define ARCCORE_MESSAGEPASSING_POINTOTPOINTSERIALIZERMNG_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arccore/message_passing/ISerializeMessage.h"
19
20#include <functional>
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
26{
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
30
31class ISerializeMessage;
32
33/*---------------------------------------------------------------------------*/
34/*---------------------------------------------------------------------------*/
38class ARCCORE_MESSAGEPASSING_EXPORT PointToPointSerializerMng
39{
40 class Impl;
41
42 public:
43
46
47 public:
49 PointToPointSerializerMng& operator=(const PointToPointSerializerMng&) = delete;
50 public:
51
53 IMessagePassingMng* messagePassingMng() const;
54
61 void processPendingMessages();
62
71 Integer waitMessages(eWaitType wt,std::function<void(ISerializeMessage*)> functor);
72
74 bool hasMessages() const;
75
83 Ref<ISerializeMessage> addReceiveMessage(MessageRank sender_rank);
84
92 Ref<ISerializeMessage> addReceiveMessage(MessageId message_id);
93
97 Ref<ISerializeMessage> addSendMessage(MessageRank receiver_rank);
98
106 void setDefaultTag(MessageTag default_tag);
107
115 void setStrategy(ISerializeMessage::eStrategy strategy);
116
117 private:
118
119 Impl* m_p;
120};
121
122/*---------------------------------------------------------------------------*/
123/*---------------------------------------------------------------------------*/
124
125} // End namespace Arccore::MessagePassing
126
127/*---------------------------------------------------------------------------*/
128/*---------------------------------------------------------------------------*/
129
130#endif
131
Interface du gestionnaire des échanges de messages.
Communications point à point par des 'ISerializer'.
Référence à une instance.
Espace de nommage contenant les types et déclarations qui gèrent le mécanisme de parallélisme par éch...
Int32 Integer
Type représentant un entier.