Last change
on this file since 2360 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
|
Rev | Line | |
---|
[1761] | 1 | #ifndef __DAEMONS_MANAGER_HPP__ |
---|
| 2 | #define __DAEMONS_MANAGER_HPP__ |
---|
[2130] | 3 | #include <cstddef> |
---|
[1761] | 4 | |
---|
| 5 | namespace xios |
---|
| 6 | { |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | class CDaemonsManager |
---|
| 10 | { |
---|
| 11 | public: |
---|
| 12 | |
---|
| 13 | CDaemonsManager(bool isXiosServer) ; |
---|
[1764] | 14 | ~CDaemonsManager() ; |
---|
[1761] | 15 | |
---|
| 16 | bool eventLoop(void) ; |
---|
[1764] | 17 | bool servicesEventLoop(void) ; |
---|
[1761] | 18 | |
---|
[2130] | 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 |
---|
[2266] | 22 | bool finalize(void) ; |
---|
[1761] | 23 | private: |
---|
| 24 | bool isServer_ ; |
---|
[2130] | 25 | size_t scheduledContext_ = 0 ; //!< Hash id of the next scehduled context for attached mode |
---|
[2266] | 26 | bool isFinalized_=false ; |
---|
[1761] | 27 | } ; |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.