Changeset 2404 for XIOS3/trunk/src/manager/pool_ressource.hpp
- Timestamp:
- 09/19/22 10:38:09 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/manager/pool_ressource.hpp
r2274 r2404 21 21 CWindowManager* winNotify_ ; 22 22 23 public: 23 private: 24 const int NOTIFY_NOTHING=0 ; 25 const int NOTIFY_CREATE_SERVICE=1 ; 26 const int NOTIFY_CREATE_SERVICE_ONTO=2 ; 27 28 public: 24 29 CPoolRessource(MPI_Comm poolComm, const std::string& Id) ; 25 30 ~CPoolRessource() ; … … 27 32 void createService(const std::string& serviceId, int type, int size, int nbPartition) ; 28 33 void createService(MPI_Comm serviceComm, const std::string& serviceId, int partitionId, int type, int nbPartitions) ; 29 void createServiceNotify(int rank, const std::string& serviceId, int type, int size, int nbPartitions, bool in) ; 30 void createServiceDumpOut(CBufferOut& buffer) ; 31 void createServiceDumpIn(CBufferIn& buffer) ; 32 void checkCreateServiceNotification(void) ; 33 void createNewService(const std::string& serviceId, int type, int size, int nbPartitions, bool in) ; 34 bool eventLoop(bool serviceOnly=false) ; 34 void createServiceOnto(const std::string& serviceId, int type, const std::string& OnServiceId) ; 35 bool eventLoop(bool serviceOnly=false) ; 35 36 CService* getService(const std::string serviceId, int partitionId) { return services_[make_tuple(serviceId,partitionId)]; } 36 37 void finalizeSignal(void) ; 37 38 string getId(void) { return Id_; } 39 40 private: 41 void createServiceNotify(int rank, const string& serviceId, int type, int size, int nbPartitions, bool in) ; 42 void createServiceOntoNotify(int rank, const string& serviceId, int type, const string& onServiceId) ; 43 void sendNotification(int rank) ; 44 void checkNotifications(void) ; 45 void notificationsDumpOut(CBufferOut& buffer) ; 46 void notificationsDumpIn(CBufferIn& buffer) ; 47 void createService(void) ; 48 void createServiceOnto(void) ; 38 49 39 private: 50 // void createServiceNotify(int rank, const std::string& serviceId, int type, int size, int nbPartitions, bool in) ; 51 // void createServiceDumpOut(CBufferOut& buffer) ; 52 // void createServiceDumpIn(CBufferIn& buffer) ; 53 // void checkCreateServiceNotification(void) ; 54 void createNewService(const std::string& serviceId, int type, int size, int nbPartitions, bool in) ; 55 void createNewServiceOnto(const std::string& serviceId, int type, const string& onServiceId) ; 56 57 private: 40 58 MPI_Comm poolComm_ ; 41 59 42 60 std::multimap<int,int> occupancy_ ; 43 std::list<std::tuple<std::string, int, int, int, bool> > notifications_; 61 62 // std::list<std::tuple<std::string, int, int, int, bool> > notifications_; 63 64 int notifyType_ ; 65 tuple<std::string, int, int, int, bool> notifyCreateService_ ; 66 tuple<std::string, int, std::string> notifyCreateServiceOnto_ ; 67 68 44 69 std::map< std::tuple<std::string, int>, CService*> services_ ; 45 70 std::string Id_ ;
Note: See TracChangeset
for help on using the changeset viewer.