source: XIOS/trunk/src/buffer_server.hpp @ 512

Last change on this file since 512 was 512, checked in by mhnguyen, 7 years ago

Correct bug causing infinite run on multiple server and do some code clean

+) Correct a stupid typo which causes the bug
+) Add comments for class Contextclient
+) Remove some redundant codes

Test
+) On Curie
+) Connection mode: Attached: One and Multiple; Seperated: One and Multiple server
+) File mode: One and multiple file
+) All tests passed (Will it make the trusting board become red :)? )

  • 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: 579 bytes
RevLine 
[300]1#ifndef __BUFFER_SERVER_HPP__
2#define __BUFFER_SERVER_HPP__
3
4#include "xmlioserver_spl.hpp"
[342]5#include "buffer.hpp"
[382]6#include "mpi.hpp"
[509]7#include "cxios.hpp"
[300]8
[335]9namespace xios
[300]10{
11
12  class CServerBuffer
13  {
[509]14
[300]15    public:
[509]16
[512]17    CServerBuffer(StdSize bufSize) ;
[300]18    ~CServerBuffer() ;
19    char* buffer ;
[509]20
[300]21    bool isBufferFree(size_t count) ;
22    void* getBuffer(size_t count) ;
23    void freeBuffer(size_t count) ;
[509]24
[300]25    size_t first ;   // first occupied element
26    size_t current ; // first free element
27    size_t end ;
28    size_t size ;
[317]29    size_t bufferSizeByClient ;
[300]30  } ;
31
[509]32
[300]33}
34
35#endif
Note: See TracBrowser for help on using the repository browser.