Changeset 2607


Ignore:
Timestamp:
01/29/24 10:39:01 (3 months ago)
Author:
jderouillat
Message:

In the P2P protocol, forces to allocate the fixed buffer if it is defined, accept more buffers in the growth phase. Add a missing timer in the interface

Location:
XIOS3/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/interface/c/iccontext.cpp

    r2603 r2607  
    9898      { 
    9999        *_ret = true; 
     100        CTimer::get("XIOS").suspend(); 
    100101        return; 
    101102      } 
  • XIOS3/trunk/src/transport/p2p_client_buffer.cpp

    r2594 r2607  
    6969    buffers_.push_back(new CBuffer(windows_[currentMirror_], size, fixed));  
    7070    currentBuffer_=buffers_.back() ; 
    71     info(logProtocol)<<"   Nb attached memory blocs="<<buffers_.size()<<endl ; 
     71    info(logProtocol)<<"   Nb attached memory blocs="<<buffers_.size()<<", size of the last buffer = " << size << endl ; 
    7272  } 
    7373 
     
    8888        { 
    8989          if ( size > buffer->getSize()) return true ; 
     90          else if ( currentBufferSize_ < fixedSize_ ) return true ; 
    9091          else return false ; 
    9192        } 
     
    117118            newBuffer(currentBufferSize_, fixed_) ; 
    118119          } 
     120        } 
     121        else if ((currentBufferSize_ < fixedSize_)&&(fixed_)) 
     122        { 
     123          // Forces to allocate the fixed buffer if defined 
     124          //   without this test, could be not done if each field size is < currentBufferSize_ 
     125          currentBufferSize_ = fixedSize_ ; 
     126          newBuffer(currentBufferSize_, fixed_) ; 
    119127        } 
    120128        CBuffer* currentBuffer = buffers_.back() ; 
  • XIOS3/trunk/src/transport/p2p_cs_buffer_base.hpp

    r2556 r2607  
    2020 
    2121      const size_t EVENT_BUFFER_RESIZE = std::numeric_limits<size_t>::max()-1 ; 
    22       const int MAX_WINDOWS=6 ; 
     22      const int MAX_WINDOWS=60 ; 
    2323 
    2424 
Note: See TracChangeset for help on using the changeset viewer.