source: XIOS/dev/branch_yushan/src/event_client.hpp @ 1074

Last change on this file since 1074 was 1072, checked in by yushan, 7 years ago

Using threads : modif for xios_initialize

  • 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: 727 bytes
Line 
1#ifndef __EVENT_CLIENT_HPP__
2#define __EVENT_CLIENT_HPP__
3
4#include "xios_spl.hpp"
5#include "buffer_out.hpp"
6#include "message.hpp"
7
8namespace xios
9{
10  class CEventClient
11  {
12    public:
13      static const size_t headerSize;
14      //#pragma omp threadprivate(headerSize)
15
16      CEventClient(int classId, int typeId);
17
18      void push(int rank, int nbSender, CMessage& msg);
19      void send(size_t timeLine, const std::list<int>& sizes, std::list<CBufferOut*>&); 
20
21      bool isEmpty(void);
22      std::list<int> getRanks(void);
23      std::list<int> getSizes(void);
24
25    private:
26      int classId;
27      int typeId;
28      std::list<int> ranks;
29      std::list<int> nbSenders;
30      std::list<CMessage*> messages;
31  };
32}
33
34#endif
Note: See TracBrowser for help on using the repository browser.