Changeset 2517 for XIOS3/trunk/src/manager/contexts_manager.cpp
- Timestamp:
- 06/12/23 11:52:10 (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/manager/contexts_manager.cpp
r2287 r2517 27 27 MPI_Comm_rank(xiosComm_, &commRank) ; 28 28 winNotify_ = new CWindowManager(xiosComm_, maxBufferSize_) ; 29 winNotify_->updateToExclusiveWindow(commRank, this, &CContextsManager::notificationsDumpOut) ; 29 30 30 31 31 32 winContexts_ = new CWindowManager(xiosComm_, maxBufferSize_) ; 32 winContexts_->lockWindow(commRank,0) ; 33 winContexts_->updateToWindow(commRank, this, &CContextsManager::contextsDumpOut) ; 34 winContexts_->unlockWindow(commRank,0) ; 35 33 winContexts_->updateToExclusiveWindow(commRank, this, &CContextsManager::contextsDumpOut) ; 34 36 35 MPI_Barrier(xiosComm_) ; 37 36 } … … 111 110 winNotify_->lockWindowExclusive(rank) ; 112 111 winNotify_->pushToLockedWindow(rank, this, &CContextsManager::notificationsDumpOut) ; 113 winNotify_->unlockWindow (rank) ;112 winNotify_->unlockWindowExclusive(rank) ; 114 113 } 115 114 … … 170 169 int commRank ; 171 170 MPI_Comm_rank(xiosComm_, &commRank) ; 172 winNotify_->lockWindowExclusive(commRank) ; 173 winNotify_->popFromLockedWindow(commRank, this, &CContextsManager::notificationsDumpIn) ; 174 winNotify_->unlockWindow(commRank) ; 171 winNotify_->popFromExclusiveWindow(commRank, this, &CContextsManager::notificationsDumpIn) ; 175 172 if (notifyType_==NOTIFY_CREATE_CONTEXT) createServerContext() ; 176 173 else if (notifyType_==NOTIFY_CREATE_INTERCOMM) createServerContextIntercomm() ; … … 215 212 contexts_[fullContextId] = contextInfo ; 216 213 winContexts_->updateToLockedWindow(managerGlobalLeader_, this, &CContextsManager::contextsDumpOut) ; 217 winContexts_->unlockWindow (managerGlobalLeader_) ;214 winContexts_->unlockWindowExclusive(managerGlobalLeader_) ; 218 215 } 219 216 … … 227 224 { 228 225 229 winContexts_->lockWindowShared(managerGlobalLeader_) ; 230 winContexts_->updateFromLockedWindow(managerGlobalLeader_, this, &CContextsManager::contextsDumpIn) ; 231 winContexts_->unlockWindow(managerGlobalLeader_) ; 226 winContexts_->updateFromSharedWindow(managerGlobalLeader_, this, &CContextsManager::contextsDumpIn) ; 232 227 233 228 auto it=contexts_.find(fullContextId) ;
Note: See TracChangeset
for help on using the changeset viewer.