Changeset 2274 for XIOS/dev/dev_ym/XIOS_COUPLING/src/manager
- Timestamp:
- 12/09/21 12:28:20 (3 years ago)
- Location:
- XIOS/dev/dev_ym/XIOS_COUPLING/src/manager
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/manager/pool_ressource.cpp
r2260 r2274 118 118 if (it->second->eventLoop(serviceOnly)) 119 119 { 120 delete it->second ; 120 121 services_.erase(it) ; 121 122 // don't forget to free service later … … 196 197 finalizeSignal_=true ; 197 198 for (auto it=services_.begin(); it!=services_.end() ; ++it) it->second->finalizeSignal() ; 198 } 199 199 } 200 201 CPoolRessource::~CPoolRessource() 202 { 203 delete winNotify_ ; 204 for(auto& service : services_) delete service.second ; 205 } 200 206 } -
XIOS/dev/dev_ym/XIOS_COUPLING/src/manager/pool_ressource.hpp
r2260 r2274 23 23 public: 24 24 CPoolRessource(MPI_Comm poolComm, const std::string& Id) ; 25 ~CPoolRessource() ; 25 26 26 27 void createService(const std::string& serviceId, int type, int size, int nbPartition) ; -
XIOS/dev/dev_ym/XIOS_COUPLING/src/manager/server_context.cpp
r2265 r2274 54 54 CServerContext::~CServerContext() 55 55 { 56 56 cout<<"Server Context destructor"<<endl; 57 57 } 58 58 -
XIOS/dev/dev_ym/XIOS_COUPLING/src/manager/server_context.hpp
r2260 r2274 19 19 const int& partitionId, const std::string& contextId) ; 20 20 ~CServerContext() ; 21 static void releaseStaticAllocation(void) { overlapedComm_.clear() ;} 21 22 22 23 bool createIntercomm(const string& poolId, const string& serviceId, const int& partitionId, const string& contextId, -
XIOS/dev/dev_ym/XIOS_COUPLING/src/manager/servers_ressource.cpp
r2260 r2274 131 131 if (poolRessource_->eventLoop(serviceOnly)) 132 132 { 133 delete poolRessource_ ; 133 134 poolRessource_=nullptr ; 134 135 // don't forget to free pool ressource later … … 188 189 else return false ; 189 190 } 191 192 CServersRessource::~CServersRessource() 193 { 194 delete winNotify_ ; 195 } 190 196 } -
XIOS/dev/dev_ym/XIOS_COUPLING/src/manager/servers_ressource.hpp
r2260 r2274 24 24 25 25 CServersRessource(MPI_Comm serverComm) ; 26 ~CServersRessource() ; 26 27 void createPool(const string& poolId, const int size) ; 27 28 void createPool(void) ; -
XIOS/dev/dev_ym/XIOS_COUPLING/src/manager/services.cpp
r2260 r2274 42 42 name_= poolId+"::"+serviceId+"_"+oss.str(); 43 43 } 44 45 CService::~CService() 46 { 47 delete eventScheduler_ ; 48 delete winNotify_ ; 49 for(auto& it : contexts_) delete it.second ; 50 } 51 44 52 45 53 void CService::createContext( const std::string& poolId, const std::string& serviceId, const int& partitionId, const std::string& contextId) … … 121 129 if (it->second->eventLoop(serviceOnly)) 122 130 { 131 delete it->second ; 123 132 contexts_.erase(it) ; 124 133 // destroy server_context -> to do later … … 235 244 auto& arg=notifyInCreateContext_ ; 236 245 string poolId = get<0>(arg) ; 237 string &serviceId = get<1>(arg) ;246 string serviceId = get<1>(arg) ; 238 247 int partitionId = get<2>(arg) ; 239 248 string contextId = get<3>(arg) ; 240 contexts_[contextId] = new CServerContext(this, serviceComm_, poolId, serviceId, partitionId, contextId) ; 249 contexts_[contextId] = new CServerContext(this, serviceComm_, poolId, serviceId, partitionId, contextId) ; 241 250 } 242 251 -
XIOS/dev/dev_ym/XIOS_COUPLING/src/manager/services.hpp
r2260 r2274 21 21 CService(MPI_Comm serviceComm, const std::string& poolId, const std::string& serviceId, const int& partitionId, 22 22 int type, int nbPartitions) ; 23 ~CService() ; 24 23 25 bool eventLoop(bool serviceOnly=false) ; 24 26 void createContext(const std::string& poolId, const std::string& serviceId, const int& partitionId, const std::string& contextId) ;
Note: See TracChangeset
for help on using the changeset viewer.