comparison 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
comparison
equal deleted inserted replaced
1097:4383382db01d 1098:17660df24c36
33 public: 33 public:
34 virtual ~IOracle() 34 virtual ~IOracle()
35 { 35 {
36 } 36 }
37 37
38 virtual void Schedule(boost::shared_ptr<IObserver>& receiver, 38 /**
39 * Returns "true" iff the command has actually been queued. If
40 * "false" is returned, the command has been freed, and it won't
41 * be processed (this is the case if the oracle is stopped).
42 **/
43 virtual bool Schedule(boost::shared_ptr<IObserver> receiver,
39 IOracleCommand* command) = 0; // Takes ownership 44 IOracleCommand* command) = 0; // Takes ownership
40 }; 45 };
41 } 46 }