Changeset 1378 for XIOS/dev/XIOS_DEV_CMIP6/src/node/context.cpp
- Timestamp:
- 12/13/17 16:11:58 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/XIOS_DEV_CMIP6/src/node/context.cpp
r1372 r1378 396 396 397 397 //! Try to send the buffers and receive possible answers 398 bool CContext::checkBuffersAndListen( void)398 bool CContext::checkBuffersAndListen(bool enableEventsProcessing /*= true*/) 399 399 { 400 400 bool clientReady, serverFinished; … … 408 408 hasTmpBufferedEvent = !client->sendTemporarilyBufferedEvent(); 409 409 // Don't process events if there is a temporarily buffered event 410 return server->eventLoop(!hasTmpBufferedEvent );410 return server->eventLoop(!hasTmpBufferedEvent || !enableEventsProcessing); 411 411 } 412 412 else if (CServer::serverLevel == 1) … … 423 423 clientPrimServer[i]->checkBuffers(); 424 424 if (!finalized) 425 serverPrimFinished *= serverPrimServer[i]->eventLoop( );425 serverPrimFinished *= serverPrimServer[i]->eventLoop(enableEventsProcessing); 426 426 } 427 427 return ( serverFinished && serverPrimFinished); … … 431 431 { 432 432 client->checkBuffers(); 433 return server->eventLoop( );433 return server->eventLoop(enableEventsProcessing); 434 434 } 435 435 } … … 490 490 { 491 491 // Blocking send of context finalize message to its client (e.g. primary server or model) 492 info(100)<<"DEBUG: context "<<getId()<<" Send client finalize<<"<<endl ; 492 493 client->finalize(); 493 494 bool bufferReleased;
Note: See TracChangeset
for help on using the changeset viewer.