Changeset 2628 for XIOS3/trunk/src/manager/ressources_manager.cpp
- Timestamp:
- 04/03/24 10:33:55 (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/manager/ressources_manager.cpp
r2580 r2628 12 12 { 13 13 using namespace std; 14 extern CLogType logTimers ; 14 15 15 16 CRessourcesManager::CRessourcesManager(bool isXiosServer) … … 112 113 void CRessourcesManager::eventLoop(void) 113 114 { 114 CTimer::get("CRessourcesManager::eventLoop").resume();115 if (info.isActive(logTimers)) CTimer::get("CRessourcesManager::eventLoop").resume(); 115 116 int flag ; 116 117 MPI_Iprobe(MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &flag, MPI_STATUS_IGNORE); … … 122 123 } 123 124 124 CTimer::get("CRessourcesManager::eventLoop").suspend();125 if (info.isActive(logTimers)) CTimer::get("CRessourcesManager::eventLoop").suspend(); 125 126 } 126 127 … … 129 130 int commRank ; 130 131 MPI_Comm_rank(xiosComm_, &commRank) ; 131 CTimer::get("CRessourcesManager::checkNotifications lock").resume();132 if (info.isActive(logTimers)) CTimer::get("CRessourcesManager::checkNotifications lock").resume(); 132 133 winNotify_->lockWindowExclusive(commRank) ; 133 CTimer::get("CRessourcesManager::checkNotifications lock").suspend();134 CTimer::get("CRessourcesManager::checkNotifications pop").resume();134 if (info.isActive(logTimers)) CTimer::get("CRessourcesManager::checkNotifications lock").suspend(); 135 if (info.isActive(logTimers)) CTimer::get("CRessourcesManager::checkNotifications pop").resume(); 135 136 winNotify_->popFromLockedWindow(commRank, this, &CRessourcesManager::notificationsDumpIn) ; 136 CTimer::get("CRessourcesManager::checkNotifications pop").suspend();137 CTimer::get("CRessourcesManager::checkNotifications unlock").resume();137 if (info.isActive(logTimers)) CTimer::get("CRessourcesManager::checkNotifications pop").suspend(); 138 if (info.isActive(logTimers)) CTimer::get("CRessourcesManager::checkNotifications unlock").resume(); 138 139 winNotify_->unlockWindowExclusive(commRank) ; 139 CTimer::get("CRessourcesManager::checkNotifications unlock").suspend();140 if (info.isActive(logTimers)) CTimer::get("CRessourcesManager::checkNotifications unlock").suspend(); 140 141 if (notifyType_==NOTIFY_CREATE_POOL) createPool() ; 141 142 else if (notifyType_==NOTIFY_FINALIZE) finalizeSignal() ;
Note: See TracChangeset
for help on using the changeset viewer.