Ignore:
Timestamp:
04/20/21 09:49:47 (3 years ago)
Author:
ymipsl
Message:

New management of client-server buffers.

  • buffers can grow automatically in intialization phase
  • buffers is evaluated after the close context definition phase and fixed at optimal value.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/context.hpp

    r2123 r2130  
    150150         std::map<int, StdSize> getAttributesBufferSize(std::map<int, StdSize>& maxEventSize, CContextClient* contextClient, bool bufferForWriting = false); 
    151151         std::map<int, StdSize> getDataBufferSize(std::map<int, StdSize>& maxEventSize, CContextClient* contextClient, bool bufferForWriting = false); 
    152          void setClientServerBuffer(CContextClient* contextClient, bool bufferForWriting = false); // old interface to be removed 
    153          void setClientServerBuffer(vector<CField*>& fields, bool bufferForWriting) ;  
    154152 
    155153         // Distribute files (in write mode) among secondary-server pools according to the estimated data flux 
     
    357355         string contextId_ ; //!< context client id for the servers. For clients this is same as getId()  
    358356         bool isProcessingEvent_ ; 
     357    private:      
    359358         CServerContext* parentServerContext_ ; 
    360  
     359    public: 
     360         CServerContext* getParentServerContext(void) { return parentServerContext_; } 
     361    private:  
     362      bool lockedContext_=false; 
     363    public:  
     364        void lockContext(void) {lockedContext_=true; } 
     365        void unlockContext(void) {lockedContext_=true; } 
     366        bool isLockedContext(void) { return lockedContext_;} 
    361367      public: // Some function maybe removed in the near future 
    362368        // virtual void toBinary  (StdOStream & os) const; 
Note: See TracChangeset for help on using the changeset viewer.