Ignore:
Timestamp:
01/25/17 16:25:17 (7 years ago)
Author:
yushan
Message:

initialize the branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan/src/context_client.hpp

    r1033 r1037  
    1010#include "mpi.hpp" 
    1111#include "registry.hpp" 
     12#ifdef _usingEP 
     13//#include "ep_declaration.hpp" 
     14#endif 
     15 
    1216 
    1317namespace xios 
     
    3135      // Send event to server 
    3236      void sendEvent(CEventClient& event); 
    33       bool sendTemporarilyBufferedEvent(); 
    3437      void waitEvent(list<int>& ranks); 
    3538 
    36       // Functions to set/get buffers 
    37       bool getBuffers(const list<int>& serverList, const list<int>& sizeList, list<CBufferOut*>& retBuffers, bool nonBlocking = false); 
     39      // Functions relates to set/get buffers 
     40      list<CBufferOut*> getBuffers(list<int>& serverlist, list<int>& sizeList); 
    3841      void newBuffer(int rank); 
    3942      bool checkBuffers(list<int>& ranks); 
     
    4245 
    4346      bool isServerLeader(void) const; 
    44       bool isServerNotLeader(void) const; 
    4547      const std::list<int>& getRanksServerLeader(void) const; 
    46       const std::list<int>& getRanksServerNotLeader(void) const; 
    4748 
    4849      bool isAttachedModeEnabled() const; 
    49  
    50       bool hasTemporarilyBufferedEvent() const { return !tmpBufferedEvent.isEmpty(); }; 
    5150 
    5251      // Close and finalize context client 
     
    7978      StdSize maxBufferedEvents; 
    8079 
    81       struct { 
    82         std::list<int> ranks, sizes; 
    83         std::list<CBufferOut*> buffers; 
    84  
    85         bool isEmpty() const { return ranks.empty(); }; 
    86         void clear() { 
    87           ranks.clear(); 
    88           sizes.clear(); 
    89  
    90           for (std::list<CBufferOut*>::iterator it = buffers.begin(); it != buffers.end(); it++) 
    91             delete *it; 
    92  
    93           buffers.clear(); 
    94         }; 
    95       } tmpBufferedEvent; //! Event temporarily buffered (used only on the server) 
    96  
    9780      //! Context for server (Only used in attached mode) 
    9881      CContext* parentServer; 
     
    10083      //! List of server ranks for which the client is leader 
    10184      std::list<int> ranksServerLeader; 
    102  
    103       //! List of server ranks for which the client is not leader 
    104       std::list<int> ranksServerNotLeader; 
    10585 
    10686    public: // Some function should be removed in the future 
Note: See TracChangeset for help on using the changeset viewer.