[email protected] | 4c03b2e9 | 2012-01-03 19:36:57 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef BASE_OBSERVER_LIST_THREADSAFE_H_ |
| 6 | #define BASE_OBSERVER_LIST_THREADSAFE_H_ |
| 7 | |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 8 | #include <unordered_map> |
Lei Zhang | 52637ed | 2019-02-20 01:38:37 | [diff] [blame] | 9 | #include <utility> |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 10 | |
Francois Doray | f248acd | 2017-10-30 17:48:49 | [diff] [blame] | 11 | #include "base/base_export.h" |
[email protected] | a6ffd7d | 2011-10-12 20:26:50 | [diff] [blame] | 12 | #include "base/bind.h" |
Hans Wennborg | 7b53371 | 2020-06-22 20:52:27 | [diff] [blame] | 13 | #include "base/check_op.h" |
Lei Zhang | c0f9fc5 | 2021-05-22 08:00:53 | [diff] [blame] | 14 | #include "base/containers/contains.h" |
Francois Doray | f248acd | 2017-10-30 17:48:49 | [diff] [blame] | 15 | #include "base/lazy_instance.h" |
[email protected] | c62dd9d | 2011-09-21 18:05:41 | [diff] [blame] | 16 | #include "base/location.h" |
Keishi Hattori | 0e45c02 | 2021-11-27 09:25:52 | [diff] [blame^] | 17 | #include "base/memory/raw_ptr.h" |
[email protected] | 3b63f8f4 | 2011-03-28 01:54:15 | [diff] [blame] | 18 | #include "base/memory/ref_counted.h" |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 19 | #include "base/observer_list.h" |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 20 | #include "base/synchronization/lock.h" |
Patrick Monette | 643cdf6 | 2021-10-15 19:13:42 | [diff] [blame] | 21 | #include "base/task/sequenced_task_runner.h" |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 22 | #include "base/threading/sequenced_task_runner_handle.h" |
| 23 | #include "base/threading/thread_local.h" |
| 24 | #include "build/build_config.h" |
| 25 | |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 26 | /////////////////////////////////////////////////////////////////////////////// |
| 27 | // |
| 28 | // OVERVIEW: |
| 29 | // |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 30 | // A thread-safe container for a list of observers. This is similar to the |
| 31 | // observer_list (see observer_list.h), but it is more robust for multi- |
| 32 | // threaded situations. |
[email protected] | 52a261f | 2009-03-03 15:01:12 | [diff] [blame] | 33 | // |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 34 | // The following use cases are supported: |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 35 | // * Observers can register for notifications from any sequence. They are |
| 36 | // always notified on the sequence from which they were registered. |
| 37 | // * Any sequence may trigger a notification via Notify(). |
| 38 | // * Observers can remove themselves from the observer list inside of a |
| 39 | // callback. |
| 40 | // * If one sequence is notifying observers concurrently with an observer |
| 41 | // removing itself from the observer list, the notifications will be |
| 42 | // silently dropped. |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 43 | // |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 44 | // The drawback of the threadsafe observer list is that notifications are not |
| 45 | // as real-time as the non-threadsafe version of this class. Notifications |
| 46 | // will always be done via PostTask() to another sequence, whereas with the |
Francois Doray | 4ffc9e1 | 2021-05-07 14:34:43 | [diff] [blame] | 47 | // non-thread-safe ObserverList, notifications happen synchronously. |
| 48 | // |
| 49 | // Note: this class previously supported synchronous notifications for |
| 50 | // same-sequence observers, but it was error-prone and removed in |
| 51 | // crbug.com/1193750, think twice before re-considering this paradigm. |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 52 | // |
| 53 | /////////////////////////////////////////////////////////////////////////////// |
[email protected] | bf68712 | 2011-01-11 21:19:54 | [diff] [blame] | 54 | |
brettw | 5a1613dc | 2015-06-02 05:34:43 | [diff] [blame] | 55 | namespace base { |
brettw | 5a1613dc | 2015-06-02 05:34:43 | [diff] [blame] | 56 | namespace internal { |
| 57 | |
Francois Doray | f248acd | 2017-10-30 17:48:49 | [diff] [blame] | 58 | class BASE_EXPORT ObserverListThreadSafeBase |
| 59 | : public RefCountedThreadSafe<ObserverListThreadSafeBase> { |
| 60 | public: |
| 61 | ObserverListThreadSafeBase() = default; |
David Bienvenu | 5f4d4f0 | 2020-09-27 16:55:03 | [diff] [blame] | 62 | ObserverListThreadSafeBase(const ObserverListThreadSafeBase&) = delete; |
| 63 | ObserverListThreadSafeBase& operator=(const ObserverListThreadSafeBase&) = |
| 64 | delete; |
tzik | b7990cc | 2016-08-25 02:19:36 | [diff] [blame] | 65 | |
Francois Doray | f248acd | 2017-10-30 17:48:49 | [diff] [blame] | 66 | protected: |
| 67 | template <typename ObserverType, typename Method> |
| 68 | struct Dispatcher; |
| 69 | |
| 70 | template <typename ObserverType, typename ReceiverType, typename... Params> |
| 71 | struct Dispatcher<ObserverType, void (ReceiverType::*)(Params...)> { |
| 72 | static void Run(void (ReceiverType::*m)(Params...), |
| 73 | Params... params, |
| 74 | ObserverType* obj) { |
| 75 | (obj->*m)(std::forward<Params>(params)...); |
| 76 | } |
| 77 | }; |
| 78 | |
| 79 | struct NotificationDataBase { |
| 80 | NotificationDataBase(void* observer_list_in, const Location& from_here_in) |
| 81 | : observer_list(observer_list_in), from_here(from_here_in) {} |
| 82 | |
Keishi Hattori | 0e45c02 | 2021-11-27 09:25:52 | [diff] [blame^] | 83 | raw_ptr<void> observer_list; |
Francois Doray | f248acd | 2017-10-30 17:48:49 | [diff] [blame] | 84 | Location from_here; |
| 85 | }; |
| 86 | |
| 87 | virtual ~ObserverListThreadSafeBase() = default; |
| 88 | |
| 89 | static LazyInstance<ThreadLocalPointer<const NotificationDataBase>>::Leaky |
| 90 | tls_current_notification_; |
| 91 | |
| 92 | private: |
| 93 | friend class RefCountedThreadSafe<ObserverListThreadSafeBase>; |
[email protected] | 4c03b2e9 | 2012-01-03 19:36:57 | [diff] [blame] | 94 | }; |
| 95 | |
brettw | 5a1613dc | 2015-06-02 05:34:43 | [diff] [blame] | 96 | } // namespace internal |
| 97 | |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 98 | template <class ObserverType> |
Francois Doray | f248acd | 2017-10-30 17:48:49 | [diff] [blame] | 99 | class ObserverListThreadSafe : public internal::ObserverListThreadSafeBase { |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 100 | public: |
Eric Seckler | 3676f3c | 2021-04-27 14:32:38 | [diff] [blame] | 101 | enum class AddObserverResult { |
| 102 | kBecameNonEmpty, |
| 103 | kWasAlreadyNonEmpty, |
| 104 | }; |
| 105 | enum class RemoveObserverResult { |
| 106 | kWasOrBecameEmpty, |
| 107 | kRemainsNonEmpty, |
| 108 | }; |
| 109 | |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 110 | ObserverListThreadSafe() = default; |
François Degros | d6e2d7dd | 2017-11-22 05:37:02 | [diff] [blame] | 111 | explicit ObserverListThreadSafe(ObserverListPolicy policy) |
| 112 | : policy_(policy) {} |
David Bienvenu | 5f4d4f0 | 2020-09-27 16:55:03 | [diff] [blame] | 113 | ObserverListThreadSafe(const ObserverListThreadSafe&) = delete; |
| 114 | ObserverListThreadSafe& operator=(const ObserverListThreadSafe&) = delete; |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 115 | |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 116 | // Adds |observer| to the list. |observer| must not already be in the list. |
Eric Seckler | 3676f3c | 2021-04-27 14:32:38 | [diff] [blame] | 117 | AddObserverResult AddObserver(ObserverType* observer) { |
Francois Doray | c91b0c3 | 2020-06-30 15:53:55 | [diff] [blame] | 118 | DCHECK(SequencedTaskRunnerHandle::IsSet()) |
| 119 | << "An observer can only be registered when SequencedTaskRunnerHandle " |
| 120 | "is set. If this is in a unit test, you're likely merely missing a " |
| 121 | "base::test::(SingleThread)TaskEnvironment in your fixture. " |
| 122 | "Otherwise, try running this code on a named thread (main/UI/IO) or " |
| 123 | "from a task posted to a base::SequencedTaskRunner or " |
| 124 | "base::SingleThreadTaskRunner."; |
[email protected] | c2b1b30 | 2011-11-23 20:34:04 | [diff] [blame] | 125 | |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 126 | AutoLock auto_lock(lock_); |
| 127 | |
Eric Seckler | 3676f3c | 2021-04-27 14:32:38 | [diff] [blame] | 128 | bool was_empty = observers_.empty(); |
| 129 | |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 130 | // Add |observer| to the list of observers. |
Jan Wilken Dörrie | f61e74c | 2019-06-07 08:20:02 | [diff] [blame] | 131 | DCHECK(!Contains(observers_, observer)); |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 132 | const scoped_refptr<SequencedTaskRunner> task_runner = |
| 133 | SequencedTaskRunnerHandle::Get(); |
Etienne Bergeron | 3f80c2cf | 2021-03-22 17:32:14 | [diff] [blame] | 134 | // Each observer gets a unique identifier. These unique identifiers are used |
| 135 | // to avoid execution of pending posted-tasks over removed or released |
| 136 | // observers. |
| 137 | const size_t observer_id = ++observer_id_counter_; |
| 138 | ObserverTaskRunnerInfo task_info = {task_runner, observer_id}; |
| 139 | observers_[observer] = std::move(task_info); |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 140 | |
| 141 | // If this is called while a notification is being dispatched on this thread |
François Degros | d6e2d7dd | 2017-11-22 05:37:02 | [diff] [blame] | 142 | // and |policy_| is ALL, |observer| must be notified (if a notification is |
| 143 | // being dispatched on another thread in parallel, the notification may or |
| 144 | // may not make it to |observer| depending on the outcome of the race to |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 145 | // |lock_|). |
François Degros | d6e2d7dd | 2017-11-22 05:37:02 | [diff] [blame] | 146 | if (policy_ == ObserverListPolicy::ALL) { |
Francois Doray | f248acd | 2017-10-30 17:48:49 | [diff] [blame] | 147 | const NotificationDataBase* current_notification = |
| 148 | tls_current_notification_.Get().Get(); |
| 149 | if (current_notification && current_notification->observer_list == this) { |
Etienne Bergeron | 3f80c2cf | 2021-03-22 17:32:14 | [diff] [blame] | 150 | const NotificationData* notification_data = |
| 151 | static_cast<const NotificationData*>(current_notification); |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 152 | task_runner->PostTask( |
| 153 | current_notification->from_here, |
Etienne Bergeron | 3f80c2cf | 2021-03-22 17:32:14 | [diff] [blame] | 154 | BindOnce(&ObserverListThreadSafe<ObserverType>::NotifyWrapper, this, |
| 155 | observer, |
| 156 | NotificationData(this, observer_id, |
| 157 | current_notification->from_here, |
| 158 | notification_data->method))); |
avi | 816e3cf | 2016-10-27 04:10:51 | [diff] [blame] | 159 | } |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 160 | } |
Eric Seckler | 3676f3c | 2021-04-27 14:32:38 | [diff] [blame] | 161 | |
| 162 | return was_empty ? AddObserverResult::kBecameNonEmpty |
| 163 | : AddObserverResult::kWasAlreadyNonEmpty; |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 164 | } |
| 165 | |
[email protected] | 631739f | 2011-06-05 07:07:12 | [diff] [blame] | 166 | // Remove an observer from the list if it is in the list. |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 167 | // |
| 168 | // If a notification was sent to the observer but hasn't started to run yet, |
| 169 | // it will be aborted. If a notification has started to run, removing the |
| 170 | // observer won't stop it. |
Eric Seckler | 3676f3c | 2021-04-27 14:32:38 | [diff] [blame] | 171 | RemoveObserverResult RemoveObserver(ObserverType* observer) { |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 172 | AutoLock auto_lock(lock_); |
| 173 | observers_.erase(observer); |
Eric Seckler | 3676f3c | 2021-04-27 14:32:38 | [diff] [blame] | 174 | return observers_.empty() ? RemoveObserverResult::kWasOrBecameEmpty |
| 175 | : RemoveObserverResult::kRemainsNonEmpty; |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 176 | } |
| 177 | |
[email protected] | f6969fe | 2012-02-08 00:22:11 | [diff] [blame] | 178 | // Verifies that the list is currently empty (i.e. there are no observers). |
| 179 | void AssertEmpty() const { |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 180 | #if DCHECK_IS_ON() |
| 181 | AutoLock auto_lock(lock_); |
| 182 | DCHECK(observers_.empty()); |
| 183 | #endif |
[email protected] | f6969fe | 2012-02-08 00:22:11 | [diff] [blame] | 184 | } |
| 185 | |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 186 | // Asynchronously invokes a callback on all observers, on their registration |
| 187 | // sequence. You cannot assume that at the completion of the Notify call that |
| 188 | // all Observers have been Notified. The notification may still be pending |
| 189 | // delivery. |
tzik | b7990cc | 2016-08-25 02:19:36 | [diff] [blame] | 190 | template <typename Method, typename... Params> |
Brett Wilson | 8e88b31 | 2017-09-12 05:22:16 | [diff] [blame] | 191 | void Notify(const Location& from_here, Method m, Params&&... params) { |
kylechar | b2695fc | 2019-04-24 14:51:20 | [diff] [blame] | 192 | RepeatingCallback<void(ObserverType*)> method = |
| 193 | BindRepeating(&Dispatcher<ObserverType, Method>::Run, m, |
| 194 | std::forward<Params>(params)...); |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 195 | |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 196 | AutoLock lock(lock_); |
| 197 | for (const auto& observer : observers_) { |
Etienne Bergeron | 3f80c2cf | 2021-03-22 17:32:14 | [diff] [blame] | 198 | observer.second.task_runner->PostTask( |
reillyg | 9a77a72 | 2015-02-09 20:18:33 | [diff] [blame] | 199 | from_here, |
tzik | 92b7a42 | 2017-04-11 15:00:44 | [diff] [blame] | 200 | BindOnce(&ObserverListThreadSafe<ObserverType>::NotifyWrapper, this, |
Etienne Bergeron | 3f80c2cf | 2021-03-22 17:32:14 | [diff] [blame] | 201 | observer.first, |
| 202 | NotificationData(this, observer.second.observer_id, |
| 203 | from_here, method))); |
thakis | 662b3e4 | 2014-12-23 02:02:57 | [diff] [blame] | 204 | } |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 205 | } |
| 206 | |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 207 | private: |
Francois Doray | f248acd | 2017-10-30 17:48:49 | [diff] [blame] | 208 | friend class RefCountedThreadSafe<ObserverListThreadSafeBase>; |
[email protected] | bf68712 | 2011-01-11 21:19:54 | [diff] [blame] | 209 | |
Francois Doray | f248acd | 2017-10-30 17:48:49 | [diff] [blame] | 210 | struct NotificationData : public NotificationDataBase { |
| 211 | NotificationData(ObserverListThreadSafe* observer_list_in, |
Etienne Bergeron | 3f80c2cf | 2021-03-22 17:32:14 | [diff] [blame] | 212 | size_t observer_id_in, |
Francois Doray | f248acd | 2017-10-30 17:48:49 | [diff] [blame] | 213 | const Location& from_here_in, |
kylechar | b2695fc | 2019-04-24 14:51:20 | [diff] [blame] | 214 | const RepeatingCallback<void(ObserverType*)>& method_in) |
Francois Doray | f248acd | 2017-10-30 17:48:49 | [diff] [blame] | 215 | : NotificationDataBase(observer_list_in, from_here_in), |
Etienne Bergeron | 3f80c2cf | 2021-03-22 17:32:14 | [diff] [blame] | 216 | method(method_in), |
| 217 | observer_id(observer_id_in) {} |
[email protected] | 920b1fe | 2011-08-09 21:29:59 | [diff] [blame] | 218 | |
kylechar | b2695fc | 2019-04-24 14:51:20 | [diff] [blame] | 219 | RepeatingCallback<void(ObserverType*)> method; |
Etienne Bergeron | 3f80c2cf | 2021-03-22 17:32:14 | [diff] [blame] | 220 | size_t observer_id; |
[email protected] | 920b1fe | 2011-08-09 21:29:59 | [diff] [blame] | 221 | }; |
| 222 | |
Takuto Ikuta | 88317a4c | 2018-04-27 18:19:58 | [diff] [blame] | 223 | ~ObserverListThreadSafe() override = default; |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 224 | |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 225 | void NotifyWrapper(ObserverType* observer, |
| 226 | const NotificationData& notification) { |
tsergeant | 0091f85 | 2017-02-01 00:47:41 | [diff] [blame] | 227 | { |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 228 | AutoLock auto_lock(lock_); |
avi | 816e3cf | 2016-10-27 04:10:51 | [diff] [blame] | 229 | |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 230 | // Check whether the observer still needs a notification. |
Etienne Bergeron | 3f80c2cf | 2021-03-22 17:32:14 | [diff] [blame] | 231 | DCHECK_EQ(notification.observer_list, this); |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 232 | auto it = observers_.find(observer); |
Etienne Bergeron | 3f80c2cf | 2021-03-22 17:32:14 | [diff] [blame] | 233 | if (it == observers_.end() || |
| 234 | it->second.observer_id != notification.observer_id) { |
tsergeant | 0091f85 | 2017-02-01 00:47:41 | [diff] [blame] | 235 | return; |
Etienne Bergeron | 3f80c2cf | 2021-03-22 17:32:14 | [diff] [blame] | 236 | } |
| 237 | DCHECK(it->second.task_runner->RunsTasksInCurrentSequence()); |
tsergeant | 0091f85 | 2017-02-01 00:47:41 | [diff] [blame] | 238 | } |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 239 | |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 240 | // Keep track of the notification being dispatched on the current thread. |
| 241 | // This will be used if the callback below calls AddObserver(). |
| 242 | // |
| 243 | // Note: |tls_current_notification_| may not be nullptr if this runs in a |
| 244 | // nested loop started by a notification callback. In that case, it is |
| 245 | // important to save the previous value to restore it later. |
Francois Doray | f248acd | 2017-10-30 17:48:49 | [diff] [blame] | 246 | auto& tls_current_notification = tls_current_notification_.Get(); |
| 247 | const NotificationDataBase* const previous_notification = |
| 248 | tls_current_notification.Get(); |
| 249 | tls_current_notification.Set(¬ification); |
fdoray | 5062447 | 2017-01-31 20:26:28 | [diff] [blame] | 250 | |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 251 | // Invoke the callback. |
| 252 | notification.method.Run(observer); |
| 253 | |
| 254 | // Reset the notification being dispatched on the current thread to its |
| 255 | // previous value. |
Francois Doray | f248acd | 2017-10-30 17:48:49 | [diff] [blame] | 256 | tls_current_notification.Set(previous_notification); |
tsergeant | 0091f85 | 2017-02-01 00:47:41 | [diff] [blame] | 257 | } |
| 258 | |
François Degros | d6e2d7dd | 2017-11-22 05:37:02 | [diff] [blame] | 259 | const ObserverListPolicy policy_ = ObserverListPolicy::ALL; |
tsergeant | 0091f85 | 2017-02-01 00:47:41 | [diff] [blame] | 260 | |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 261 | mutable Lock lock_; |
tsergeant | 0091f85 | 2017-02-01 00:47:41 | [diff] [blame] | 262 | |
Etienne Bergeron | 3f80c2cf | 2021-03-22 17:32:14 | [diff] [blame] | 263 | size_t observer_id_counter_ GUARDED_BY(lock_) = 0; |
| 264 | |
| 265 | struct ObserverTaskRunnerInfo { |
| 266 | scoped_refptr<SequencedTaskRunner> task_runner; |
| 267 | size_t observer_id = 0; |
| 268 | }; |
| 269 | |
fdoray | 6aad314 | 2017-04-10 18:58:21 | [diff] [blame] | 270 | // Keys are observers. Values are the SequencedTaskRunners on which they must |
| 271 | // be notified. |
Etienne Bergeron | 3f80c2cf | 2021-03-22 17:32:14 | [diff] [blame] | 272 | std::unordered_map<ObserverType*, ObserverTaskRunnerInfo> observers_ |
| 273 | GUARDED_BY(lock_); |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 274 | }; |
| 275 | |
brettw | 5a1613dc | 2015-06-02 05:34:43 | [diff] [blame] | 276 | } // namespace base |
| 277 | |
[email protected] | 503631c | 2008-10-22 23:09:21 | [diff] [blame] | 278 | #endif // BASE_OBSERVER_LIST_THREADSAFE_H_ |