Mercurial > hg > orthanc-stone
comparison Platforms/Generic/DelayedCallCommand.h @ 1059:e713f1a99861 broker
replacing MessageBroker by weak_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 11 Oct 2019 17:08:34 +0200 |
parents | c35e98d22764 |
children | 21c2b0eee53c |
comparison
equal
deleted
inserted
replaced
1058:a36c47487a70 | 1059:e713f1a99861 |
---|---|
40 OrthancStone::NativeStoneApplicationContext& context_; | 40 OrthancStone::NativeStoneApplicationContext& context_; |
41 boost::posix_time::ptime expirationTimePoint_; | 41 boost::posix_time::ptime expirationTimePoint_; |
42 unsigned int timeoutInMs_; | 42 unsigned int timeoutInMs_; |
43 | 43 |
44 public: | 44 public: |
45 DelayedCallCommand(OrthancStone::MessageBroker& broker, | 45 DelayedCallCommand(OrthancStone::MessageHandler<IDelayedCallExecutor::TimeoutMessage>* callback, // takes ownership |
46 OrthancStone::MessageHandler<IDelayedCallExecutor::TimeoutMessage>* callback, // takes ownership | |
47 unsigned int timeoutInMs, | 46 unsigned int timeoutInMs, |
48 Orthanc::IDynamicObject* payload /* takes ownership */, | 47 Orthanc::IDynamicObject* payload /* takes ownership */, |
49 OrthancStone::NativeStoneApplicationContext& context | 48 OrthancStone::NativeStoneApplicationContext& context |
50 ); | 49 ); |
51 | 50 |