Mercurial > hg > orthanc-stone
comparison Framework/Loaders/ILoadersContext.h @ 1247:af35ec39ebec broker
refactoring ILoadersContext
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 07 Jan 2020 13:12:43 +0100 |
parents | b9b5d4378874 |
children | 0ca50d275b9a |
comparison
equal
deleted
inserted
replaced
1246:3fe803f65c47 | 1247:af35ec39ebec |
---|---|
97 * loader by itself (typically in global promises), which would | 97 * loader by itself (typically in global promises), which would |
98 * make the loader disappear as soon as the scope of the | 98 * make the loader disappear as soon as the scope of the |
99 * variable is left. | 99 * variable is left. |
100 **/ | 100 **/ |
101 virtual void AddLoader(boost::shared_ptr<IObserver> loader) = 0; | 101 virtual void AddLoader(boost::shared_ptr<IObserver> loader) = 0; |
102 | |
103 /** | |
104 * Returns the number of commands that were scheduled and | |
105 * processed using the "Schedule()" method. By "processed" | |
106 * commands, we refer to the number of commands that were either | |
107 * executed by the oracle, or canceled by the user. So the | |
108 * counting sequences are monotonically increasing over time. | |
109 **/ | |
110 virtual void GetStatistics(uint64_t& scheduledCommands, | |
111 uint64_t& processedCommands) = 0; | |
102 }; | 112 }; |
103 | 113 |
104 virtual ~ILoadersContext() | 114 virtual ~ILoadersContext() |
105 { | 115 { |
106 } | 116 } |
110 * underlying features. This is important for Stone applications | 120 * underlying features. This is important for Stone applications |
111 * running in a multi-threaded environment, for which a global | 121 * running in a multi-threaded environment, for which a global |
112 * mutex is locked. | 122 * mutex is locked. |
113 **/ | 123 **/ |
114 virtual ILock* Lock() = 0; | 124 virtual ILock* Lock() = 0; |
115 | |
116 /** | |
117 * Returns the number of commands that were scheduled and | |
118 * processed using the "ILock::Schedule()" method. By "processed" | |
119 * commands, we refer to the number of commands that were either | |
120 * executed by the oracle, or canceled by the user. So the | |
121 * counting sequences are monotonically increasing over time. | |
122 **/ | |
123 virtual void GetStatistics(uint64_t& scheduledCommands, | |
124 uint64_t& processedCommands) = 0; | |
125 }; | 125 }; |
126 } | 126 } |