Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1750)

Unified Diff: base/message_loop/message_pump_libevent.h

Issue 1255293006: Microoptimisation for OnLibeventNotification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try to improve readability by separating the cases. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/message_loop/message_pump_libevent.h
diff --git a/base/message_loop/message_pump_libevent.h b/base/message_loop/message_pump_libevent.h
index 3f5ad51dae91d8a7f3f7017ab3968281e6ee6ce3..c285d966f41308b31559e61bc1005422697d8a5a 100644
--- a/base/message_loop/message_pump_libevent.h
+++ b/base/message_loop/message_pump_libevent.h
@@ -86,7 +86,9 @@ class BASE_EXPORT MessagePumpLibevent : public MessagePump {
event* event_;
MessagePumpLibevent* pump_;
Watcher* watcher_;
- WeakPtrFactory<FileDescriptorWatcher> weak_factory_;
+ // If this pointer is non-NULL, the pointee is set to true in the
+ // destructor.
+ bool* was_destroyed_;
DISALLOW_COPY_AND_ASSIGN(FileDescriptorWatcher);
};
« no previous file with comments | « no previous file | base/message_loop/message_pump_libevent.cc » ('j') | base/message_loop/message_pump_libevent.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698