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/contexts_manager.cpp

    r2246 r2258  
    109109  void CContextsManager::sendNotification(int rank) 
    110110  { 
    111     winNotify_->lockWindow(rank,0) ; 
    112     winNotify_->pushToWindow(rank, this, &CContextsManager::notificationsDumpOut) ; 
    113     winNotify_->unlockWindow(rank,0) ; 
     111    winNotify_->lockWindowExclusive(rank) ; 
     112    winNotify_->pushToLockedWindow(rank, this, &CContextsManager::notificationsDumpOut) ; 
     113    winNotify_->unlockWindow(rank) ; 
    114114  } 
    115115 
     
    168168    int commRank ; 
    169169    MPI_Comm_rank(xiosComm_, &commRank) ; 
    170     winNotify_->lockWindow(commRank,0) ; 
    171     winNotify_->popFromWindow(commRank, this, &CContextsManager::notificationsDumpIn) ; 
    172     winNotify_->unlockWindow(commRank,0) ; 
     170    winNotify_->lockWindowExclusive(commRank) ; 
     171    winNotify_->popFromLockedWindow(commRank, this, &CContextsManager::notificationsDumpIn) ; 
     172    winNotify_->unlockWindow(commRank) ; 
    173173    if (notifyType_==NOTIFY_CREATE_CONTEXT) createServerContext() ; 
    174174    else if (notifyType_==NOTIFY_CREATE_INTERCOMM) createServerContextIntercomm() ; 
Note: See TracChangeset for help on using the changeset viewer.