source: XIOS/dev/dev_ym/XIOS_COUPLING/src/manager/daemons_manager.hpp @ 2130

Last change on this file since 2130 was 2130, checked in by ymipsl, 3 years ago

New management of client-server buffers.

  • buffers can grow automatically in intialization phase
  • buffers is evaluated after the close context definition phase and fixed at optimal value.

YM

  • Property svn:executable set to *
File size: 842 bytes
Line 
1#ifndef __DAEMONS_MANAGER_HPP__
2#define __DAEMONS_MANAGER_HPP__
3#include <cstddef>
4
5namespace xios
6{
7
8
9  class CDaemonsManager
10  {
11    public:
12
13    CDaemonsManager(bool isXiosServer) ;
14    ~CDaemonsManager() ;
15
16    bool eventLoop(void) ;
17    bool servicesEventLoop(void) ;
18   
19    void scheduleContext(size_t hashId) { scheduledContext_=hashId ;} //!< for attached mode, give the hand to the associated context server
20    bool isScheduledContext(size_t hashId) { return scheduledContext_==hashId ;} //!< for attached mode, return true if context server is sceduled
21    void unscheduleContext(void) { scheduledContext_=0 ;} //!< for attached mode : unschedule context
22
23    private:
24    bool isServer_ ;
25    size_t scheduledContext_ = 0 ; //!< Hash id of the next scehduled context for attached mode
26  } ;
27}
28
29#endif
Note: See TracBrowser for help on using the repository browser.