diff 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
line wrap: on
line diff
--- a/Framework/Loaders/ILoadersContext.h	Tue Jan 07 12:56:40 2020 +0100
+++ b/Framework/Loaders/ILoadersContext.h	Tue Jan 07 13:12:43 2020 +0100
@@ -99,6 +99,16 @@
        * variable is left.
        **/
       virtual void AddLoader(boost::shared_ptr<IObserver> loader) = 0;
+
+      /**
+       * Returns the number of commands that were scheduled and
+       * processed using the "Schedule()" method. By "processed"
+       * commands, we refer to the number of commands that were either
+       * executed by the oracle, or canceled by the user. So the
+       * counting sequences are monotonically increasing over time.
+       **/
+      virtual void GetStatistics(uint64_t& scheduledCommands,
+                                 uint64_t& processedCommands) = 0;
     };
 
     virtual ~ILoadersContext()
@@ -112,15 +122,5 @@
      * mutex is locked.
      **/
     virtual ILock* Lock() = 0;
-
-    /**
-     * Returns the number of commands that were scheduled and
-     * processed using the "ILock::Schedule()" method. By "processed"
-     * commands, we refer to the number of commands that were either
-     * executed by the oracle, or canceled by the user. So the
-     * counting sequences are monotonically increasing over time.
-     **/
-    virtual void GetStatistics(uint64_t& scheduledCommands,
-                               uint64_t& processedCommands) = 0;
   };
 }