Changeset 2274 for XIOS/dev/dev_ym/XIOS_COUPLING/src/manager/services.cpp
- Timestamp:
- 12/09/21 12:28:20 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.