Last change
on this file since 679 was
591,
checked in by rlacroix, 9 years ago
|
Remove leftovers from the XMLIO age.
|
-
Property copyright set to
Software name : XIOS (Xml I/O Server) http://forge.ipsl.jussieu.fr/ioserver Creation date : January 2009 Licence : CeCCIL version2 see license file in root directory : Licence_CeCILL_V2-en.txt or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement) CNRS/IPSL (Institut Pierre Simon Laplace) Project Manager : Yann Meurdesoif yann.meurdesoif@cea.fr
|
File size:
751 bytes
|
Line | |
---|
1 | #ifndef __BUFFER_CLIENT_HPP__ |
---|
2 | #define __BUFFER_CLIENT_HPP__ |
---|
3 | |
---|
4 | #include "xios_spl.hpp" |
---|
5 | #include "buffer_out.hpp" |
---|
6 | #include "mpi.hpp" |
---|
7 | #include "cxios.hpp" |
---|
8 | |
---|
9 | namespace xios |
---|
10 | { |
---|
11 | extern size_t maxRequestSize ; |
---|
12 | |
---|
13 | class CClientBuffer |
---|
14 | { |
---|
15 | |
---|
16 | public: |
---|
17 | |
---|
18 | CClientBuffer(MPI_Comm intercomm,int serverRank, StdSize bfSize = 0) ; |
---|
19 | ~CClientBuffer() ; |
---|
20 | bool isBufferFree(int size) ; |
---|
21 | CBufferOut* getBuffer(int size) ; |
---|
22 | bool checkBuffer(void) ; |
---|
23 | bool hasPendingRequest(void) ; |
---|
24 | |
---|
25 | char* buffer[2] ; |
---|
26 | int remain(void) ; |
---|
27 | |
---|
28 | int current ; |
---|
29 | int count ; |
---|
30 | int bufferSize ; |
---|
31 | int serverRank ; |
---|
32 | bool pending ; |
---|
33 | |
---|
34 | size_t bufferSizeByServer ; |
---|
35 | |
---|
36 | MPI_Request request ; |
---|
37 | |
---|
38 | CBufferOut* retBuffer; |
---|
39 | MPI_Comm interComm ; |
---|
40 | } ; |
---|
41 | |
---|
42 | } |
---|
43 | |
---|
44 | #endif |
---|
45 | |
---|
Note: See
TracBrowser
for help on using the repository browser.