Changeset 596


Ignore:
Timestamp:
05/26/15 16:13:46 (9 years ago)
Author:
rlacroix
Message:

Ensure the buffer sizes are sent synchronously to the servers when using the attached mode.

This issue had no effect in practice however it is safer to ensure proper syncing since it might become critical for future changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/context_client.cpp

    r595 r596  
    103103      } 
    104104 
    105       if (0 != parentServer) // context->hasServer 
     105      if (0 != parentServer) // attached mode 
    106106      { 
    107107        waitEvent(ranks); 
     
    139139        (it->second)->checkBuffer(); 
    140140      } 
     141 
     142      if (0 != parentServer) // attached mode 
     143      { 
     144        while (checkBuffers()) 
     145        { 
     146          parentServer->server->listen(); 
     147        } 
     148        CContext::setCurrent(context->getId()); 
     149      } 
    141150    } 
    142151 
     
    148157    void CContextClient::waitEvent(list<int>& ranks) 
    149158    { 
    150 //      context->server->setPendingEvent(); 
    151 //      while (checkBuffers(ranks)) 
    152 //      { 
    153 //        context->server->listen(); 
    154 //        context->server->checkPendingRequest(); 
    155 //      } 
    156 // 
    157 //      while (context->server->hasPendingEvent()) 
    158 //      { 
    159 //       context->server->eventLoop(); 
    160 //      } 
    161  
    162159      parentServer->server->setPendingEvent(); 
    163160      while (checkBuffers(ranks)) 
Note: See TracChangeset for help on using the changeset viewer.