Ignore:
Timestamp:
11/16/21 17:37:42 (3 years ago)
Author:
ymipsl
Message:

One sided protocol improvment.
YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/manager/ressources_manager.cpp

    r2246 r2258  
    7272  void CRessourcesManager::sendNotification(int rank) 
    7373  { 
    74     winNotify_->lockWindow(rank,0) ; 
    75     winNotify_->pushToWindow(rank, this, &CRessourcesManager::notificationsDumpOut) ; 
    76     winNotify_->unlockWindow(rank,0) ; 
     74    winNotify_->lockWindowExclusive(rank) ; 
     75    winNotify_->pushToLockedWindow(rank, this, &CRessourcesManager::notificationsDumpOut) ; 
     76    winNotify_->unlockWindow(rank) ; 
    7777  } 
    7878 
     
    128128    MPI_Comm_rank(xiosComm_, &commRank) ; 
    129129    CTimer::get("CRessourcesManager::checkNotifications lock").resume(); 
    130     winNotify_->lockWindow(commRank,0) ; 
     130    winNotify_->lockWindowExclusive(commRank) ; 
    131131    CTimer::get("CRessourcesManager::checkNotifications lock").suspend(); 
    132132    CTimer::get("CRessourcesManager::checkNotifications pop").resume(); 
    133     winNotify_->popFromWindow(commRank, this, &CRessourcesManager::notificationsDumpIn) ; 
     133    winNotify_->popFromLockedWindow(commRank, this, &CRessourcesManager::notificationsDumpIn) ; 
    134134    CTimer::get("CRessourcesManager::checkNotifications pop").suspend(); 
    135135    CTimer::get("CRessourcesManager::checkNotifications unlock").resume(); 
    136     winNotify_->unlockWindow(commRank,0) ; 
     136    winNotify_->unlockWindow(commRank) ; 
    137137    CTimer::get("CRessourcesManager::checkNotifications unlock").suspend(); 
    138138    if (notifyType_==NOTIFY_CREATE_POOL) createPool() ; 
Note: See TracChangeset for help on using the changeset viewer.