Changeset 2517 for XIOS3/trunk/src/manager/coupler_manager.cpp
- Timestamp:
- 06/12/23 11:52:10 (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/manager/coupler_manager.cpp
r1878 r2517 23 23 if (commRank==managerGlobalLeader_) 24 24 { 25 winRegistredCoupling_->lockWindow(managerGlobalLeader_,0) ; 26 winRegistredCoupling_->updateToWindow(managerGlobalLeader_, this, &CCouplerManager::registredCouplingDumpOut) ; 27 winRegistredCoupling_->unlockWindow(managerGlobalLeader_,0) ; 28 29 winNextCoupling_->lockWindow(managerGlobalLeader_,0) ; 30 winNextCoupling_->updateToWindow(managerGlobalLeader_, this, &CCouplerManager::nextCouplingDumpOut) ; 31 winNextCoupling_->unlockWindow(managerGlobalLeader_,0) ; 25 winRegistredCoupling_->updateToExclusiveWindow(managerGlobalLeader_, this, &CCouplerManager::registredCouplingDumpOut) ; 26 winNextCoupling_->updateToExclusiveWindow(managerGlobalLeader_, this, &CCouplerManager::nextCouplingDumpOut) ; 32 27 } 33 28 … … 47 42 size_t key = strHash(getStrCoupling(srcCoupling,dstCoupling)) ; 48 43 49 winRegistredCoupling_->lockWindow (managerGlobalLeader_,0) ;50 winRegistredCoupling_->updateFrom Window(managerGlobalLeader_, this, &CCouplerManager::registredCouplingDumpIn) ;44 winRegistredCoupling_->lockWindowExclusive(managerGlobalLeader_) ; 45 winRegistredCoupling_->updateFromLockedWindow(managerGlobalLeader_, this, &CCouplerManager::registredCouplingDumpIn) ; 51 46 if (registredCoupling_.count(key)==1) 52 47 { 53 48 registredCoupling_.erase(key) ; 54 winRegistredCoupling_->updateTo Window(managerGlobalLeader_, this, &CCouplerManager::registredCouplingDumpOut) ;55 winNextCoupling_->lockWindow (managerGlobalLeader_,0) ;56 winNextCoupling_->updateFrom Window(managerGlobalLeader_, this, &CCouplerManager::nextCouplingDumpIn) ;49 winRegistredCoupling_->updateToLockedWindow(managerGlobalLeader_, this, &CCouplerManager::registredCouplingDumpOut) ; 50 winNextCoupling_->lockWindowExclusive(managerGlobalLeader_) ; 51 winNextCoupling_->updateFromLockedWindow(managerGlobalLeader_, this, &CCouplerManager::nextCouplingDumpIn) ; 57 52 nextCoupling_.push_back(pair<size_t,int>(key,2)) ; 58 winNextCoupling_->updateTo Window(managerGlobalLeader_, this, &CCouplerManager::nextCouplingDumpOut) ;59 winNextCoupling_->unlockWindow (managerGlobalLeader_,0) ;53 winNextCoupling_->updateToLockedWindow(managerGlobalLeader_, this, &CCouplerManager::nextCouplingDumpOut) ; 54 winNextCoupling_->unlockWindowExclusive(managerGlobalLeader_) ; 60 55 } 61 56 else 62 57 { 63 58 registredCoupling_.insert(key) ; 64 winRegistredCoupling_->updateTo Window(managerGlobalLeader_, this, &CCouplerManager::registredCouplingDumpOut) ;59 winRegistredCoupling_->updateToLockedWindow(managerGlobalLeader_, this, &CCouplerManager::registredCouplingDumpOut) ; 65 60 } 66 winRegistredCoupling_->unlockWindow (managerGlobalLeader_,0) ;61 winRegistredCoupling_->unlockWindowExclusive(managerGlobalLeader_) ; 67 62 } 68 63 … … 73 68 size_t key = strHash(getStrCoupling(srcCoupling,dstCoupling)) ; 74 69 75 winNextCoupling_->lockWindow (managerGlobalLeader_,0) ;76 winNextCoupling_->updateFrom Window(managerGlobalLeader_, this, &CCouplerManager::nextCouplingDumpIn) ;70 winNextCoupling_->lockWindowExclusive(managerGlobalLeader_) ; 71 winNextCoupling_->updateFromLockedWindow(managerGlobalLeader_, this, &CCouplerManager::nextCouplingDumpIn) ; 77 72 if (nextCoupling_.front().first==key) 78 73 { … … 80 75 if (nextCoupling_.front().second==1) nextCoupling_.pop_front() ; 81 76 else nextCoupling_.front().second=1 ; 82 winNextCoupling_->updateTo Window(managerGlobalLeader_, this, &CCouplerManager::nextCouplingDumpOut) ;77 winNextCoupling_->updateToLockedWindow(managerGlobalLeader_, this, &CCouplerManager::nextCouplingDumpOut) ; 83 78 } 84 79 else ret=false ; 85 winNextCoupling_->unlockWindow (managerGlobalLeader_,0) ;80 winNextCoupling_->unlockWindowExclusive(managerGlobalLeader_) ; 86 81 return ret ; 87 82 }
Note: See TracChangeset
for help on using the changeset viewer.