Mercurial > hg > orthanc-stone
comparison Framework/Loaders/LoaderStateMachine.h @ 973:38409549db43 toa2019082903
Log with addresses + added fingerprint mechanism to avoid calling zombie objects
where:
- a message is sent with a receiver
- the receiver dies
- another receiver with the SAME address is created
- the message reply is executed --> execution on the wrong object!
(since their "identity" is their address. The fix is to identify them with
an UUID stored at creation time)
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Thu, 29 Aug 2019 18:07:55 +0200 |
parents | df442f1ba0c6 |
children | 262a0244e9b2 |
comparison
equal
deleted
inserted
replaced
972:fdf8b013f228 | 973:38409549db43 |
---|---|
102 | 102 |
103 public: | 103 public: |
104 LoaderStateMachine(IOracle& oracle, | 104 LoaderStateMachine(IOracle& oracle, |
105 IObservable& oracleObservable); | 105 IObservable& oracleObservable); |
106 | 106 |
107 virtual ~LoaderStateMachine() | 107 virtual ~LoaderStateMachine(); |
108 { | |
109 Clear(); | |
110 } | |
111 | 108 |
112 bool IsActive() const | 109 bool IsActive() const |
113 { | 110 { |
114 return active_; | 111 return active_; |
115 } | 112 } |