Last change
on this file since 2195 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
|
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 |
---|
| 22 | |
---|
[1761] | 23 | private: |
---|
| 24 | bool isServer_ ; |
---|
[2130] | 25 | size_t scheduledContext_ = 0 ; //!< Hash id of the next scehduled context for attached mode |
---|
[1761] | 26 | } ; |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.