diff Framework/Oracle/IOracle.h @ 1098:17660df24c36 broker

simplification of IOracleRunner
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 Oct 2019 13:01:24 +0200
parents 53d9c3b96b9e
children c3d4adf8bc70
line wrap: on
line diff
--- a/Framework/Oracle/IOracle.h	Thu Oct 24 22:31:18 2019 +0200
+++ b/Framework/Oracle/IOracle.h	Fri Oct 25 13:01:24 2019 +0200
@@ -35,7 +35,12 @@
     {
     }
 
-    virtual void Schedule(boost::shared_ptr<IObserver>& receiver,
+    /**
+     * Returns "true" iff the command has actually been queued. If
+     * "false" is returned, the command has been freed, and it won't
+     * be processed (this is the case if the oracle is stopped).
+     **/
+    virtual bool Schedule(boost::shared_ptr<IObserver> receiver,
                           IOracleCommand* command) = 0;  // Takes ownership
   };
 }