Mercurial > hg > orthanc-stone
comparison Framework/Messages/IObservable.cpp @ 1064:af4b9cba905f broker
simplify how observers are regsitered, and how callables are created
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 15 Oct 2019 13:46:01 +0200 |
parents | e713f1a99861 |
children | 9d42f89b8c3c |
comparison
equal
deleted
inserted
replaced
1063:3e8f59cefec6 | 1064:af4b9cba905f |
---|---|
116 observer.get() == receiver) // Not broadcasting, but this is the receiver | 116 observer.get() == receiver) // Not broadcasting, but this is the receiver |
117 { | 117 { |
118 (*it)->Apply(message); | 118 (*it)->Apply(message); |
119 } | 119 } |
120 } | 120 } |
121 else | |
122 { | |
123 // TODO => Remove "it" from the list of callables => This | |
124 // allows to suppress the need for "Unregister()" | |
125 } | |
121 } | 126 } |
122 } | 127 } |
123 } | 128 } |
124 | 129 |
125 | 130 |