source: XIOS/dev/dev_olga/src/buffer_client.hpp @ 1201

Last change on this file since 1201 was 1201, checked in by oabramkina, 7 years ago

Two server levels: merging trunk r1200 (except for non-contiguous zoom) into dev. Tested on Curie. Todo: non-contiguous zoom.

  • 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: 946 bytes
RevLine 
[300]1#ifndef __BUFFER_CLIENT_HPP__
2#define __BUFFER_CLIENT_HPP__
3
[591]4#include "xios_spl.hpp"
[300]5#include "buffer_out.hpp"
[382]6#include "mpi.hpp"
[509]7#include "cxios.hpp"
[300]8
[335]9namespace xios
[300]10{
11  class CClientBuffer
12  {
13    public:
[732]14      static size_t maxRequestSize;
[509]15
[1201]16      CClientBuffer(MPI_Comm intercomm, int serverRank, StdSize bufferSize, StdSize estimatedMaxEventSize, StdSize maxBufferedEvents);
[732]17      ~CClientBuffer();
[509]18
[732]19      bool isBufferFree(int size);
20      CBufferOut* getBuffer(int size);
21      bool checkBuffer(void);
22      bool hasPendingRequest(void);
23      int remain(void);
[300]24
[732]25    private:
26      char* buffer[2];
[509]27
[732]28      int current;
29      int count;
[917]30      int bufferedEvents;
[1201]31      int maxEventSize;
[917]32      const int maxBufferedEvents;
33      const int bufferSize;
[1201]34      const int estimatedMaxEventSize;
[917]35      const int serverRank;
[732]36      bool pending;
[509]37
[732]38      MPI_Request request;
[509]39
[732]40      CBufferOut* retBuffer;
[917]41      const MPI_Comm interComm;
[732]42  };
[300]43}
44#endif
Note: See TracBrowser for help on using the repository browser.