- Timestamp:
- 04/20/21 09:49:47 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/manager/daemons_manager.hpp
r1764 r2130 1 1 #ifndef __DAEMONS_MANAGER_HPP__ 2 2 #define __DAEMONS_MANAGER_HPP__ 3 #include <cstddef> 3 4 4 5 namespace xios … … 16 17 bool servicesEventLoop(void) ; 17 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 18 23 private: 19 24 bool isServer_ ; 25 size_t scheduledContext_ = 0 ; //!< Hash id of the next scehduled context for attached mode 20 26 } ; 21 27 }
Note: See TracChangeset
for help on using the changeset viewer.