Last change
on this file since 2239 was
501,
checked in by ymipsl, 10 years ago
|
Add licence copyright to all file ond directory src using the command :
svn propset -R copyright -F header_licence src
XIOS is now officialy under CeCILL licence
YM
|
-
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 "xmlioserver_spl.hpp" |
---|
5 | #include "buffer_out.hpp" |
---|
6 | #include "mpi.hpp" |
---|
7 | |
---|
8 | namespace xios |
---|
9 | { |
---|
10 | extern size_t maxRequestSize ; |
---|
11 | |
---|
12 | class CClientBuffer |
---|
13 | { |
---|
14 | |
---|
15 | public: |
---|
16 | |
---|
17 | CClientBuffer(MPI_Comm intercomm,int serverRank) ; |
---|
18 | ~CClientBuffer() ; |
---|
19 | bool isBufferFree(int size) ; |
---|
20 | CBufferOut* getBuffer(int size) ; |
---|
21 | bool checkBuffer(void) ; |
---|
22 | bool hasPendingRequest(void) ; |
---|
23 | |
---|
24 | char* buffer[2] ; |
---|
25 | int remain(void) ; |
---|
26 | |
---|
27 | int current ; |
---|
28 | int count ; |
---|
29 | int bufferSize ; |
---|
30 | int serverRank ; |
---|
31 | bool pending ; |
---|
32 | |
---|
33 | size_t bufferSizeByServer ; |
---|
34 | |
---|
35 | MPI_Request request ; |
---|
36 | |
---|
37 | CBufferOut* retBuffer; |
---|
38 | MPI_Comm interComm ; |
---|
39 | } ; |
---|
40 | |
---|
41 | } |
---|
42 | |
---|
43 | #endif |
---|
44 | |
---|
Note: See
TracBrowser
for help on using the repository browser.