source: XIOS/dev/dev_trunk_graph/src/manager/daemons_manager.hpp @ 2230

Last change on this file since 2230 was 2137, checked in by yushan, 3 years ago

temporal commit for merging graph into XIOS_coupling

  • 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.