Last change
on this file since 2471 was
2266,
checked in by ymipsl, 3 years ago
|
Fix problem from previous commit when deallocating context.
YM
|
-
Property svn:executable set to
*
|
File size:
898 bytes
|
Line | |
---|
1 | #ifndef __DAEMONS_MANAGER_HPP__ |
---|
2 | #define __DAEMONS_MANAGER_HPP__ |
---|
3 | #include <cstddef> |
---|
4 | |
---|
5 | namespace 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 | bool finalize(void) ; |
---|
23 | private: |
---|
24 | bool isServer_ ; |
---|
25 | size_t scheduledContext_ = 0 ; //!< Hash id of the next scehduled context for attached mode |
---|
26 | bool isFinalized_=false ; |
---|
27 | } ; |
---|
28 | } |
---|
29 | |
---|
30 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.