Changeset 2628 for XIOS3/trunk/src/manager/services.cpp
- Timestamp:
- 04/03/24 10:33:55 (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/manager/services.cpp
r2589 r2628 10 10 namespace xios 11 11 { 12 extern CLogType logTimers ; 13 12 14 CService::CService(MPI_Comm serviceComm, shared_ptr<CEventScheduler> eventScheduler, const std::string& poolId, const std::string& serviceId, const int& partitionId, 13 15 int type, int nbPartitions) … … 115 117 { 116 118 //checkCreateContextNotification() ; 117 CTimer::get("CService::eventLoop").resume();119 if (info.isActive(logTimers)) CTimer::get("CService::eventLoop").resume(); 118 120 int flag ; 119 121 MPI_Iprobe(MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &flag, MPI_STATUS_IGNORE); … … 140 142 } 141 143 142 CTimer::get("CService::eventLoop").suspend();144 if (info.isActive(logTimers)) CTimer::get("CService::eventLoop").suspend(); 143 145 if (contexts_.empty() && finalizeSignal_) return true ; 144 146 else return false ; … … 147 149 void CService::threadEventLoop(void) 148 150 { 151 if (info.isActive(logTimers)) CTimer::get("CService::eventLoop").resume(); 149 152 info(100)<<"Launch Thread for CService::threadEventLoop, service id = "<<name_<<endl ; 150 153 CThreadManager::threadInitialize() ; … … 152 155 do 153 156 { 154 CTimer::get("CService::eventLoop").resume();155 157 int flag ; 156 158 MPI_Iprobe(MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &flag, MPI_STATUS_IGNORE); … … 177 179 } 178 180 179 CTimer::get("CService::eventLoop").suspend();180 181 if (contexts_.empty() && finalizeSignal_) finished_=true ; 181 182 if (!finished_) CThreadManager::yield() ; … … 184 185 CThreadManager::threadFinalize() ; 185 186 info(100)<<"Close thread for CService::threadEventLoop, service id = "<<name_<<endl ; 187 if (info.isActive(logTimers)) CTimer::get("CService::eventLoop").suspend(); 186 188 } 187 189
Note: See TracChangeset
for help on using the changeset viewer.