Changeset 1033 for XIOS/trunk/src/context_client.hpp
- Timestamp:
- 01/24/17 16:15:50 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/context_client.hpp
r988 r1033 31 31 // Send event to server 32 32 void sendEvent(CEventClient& event); 33 bool sendTemporarilyBufferedEvent(); 33 34 void waitEvent(list<int>& ranks); 34 35 35 // Functions relatesto set/get buffers36 list<CBufferOut*> getBuffers(list<int>& serverlist, list<int>& sizeList);36 // Functions to set/get buffers 37 bool getBuffers(const list<int>& serverList, const list<int>& sizeList, list<CBufferOut*>& retBuffers, bool nonBlocking = false); 37 38 void newBuffer(int rank); 38 39 bool checkBuffers(list<int>& ranks); … … 46 47 47 48 bool isAttachedModeEnabled() const; 49 50 bool hasTemporarilyBufferedEvent() const { return !tmpBufferedEvent.isEmpty(); }; 48 51 49 52 // Close and finalize context client … … 76 79 StdSize maxBufferedEvents; 77 80 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 78 97 //! Context for server (Only used in attached mode) 79 98 CContext* parentServer;
Note: See TracChangeset
for help on using the changeset viewer.