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

Unified Diff: event_loop.h

Issue 6012007: wm: Fix FD leak in watchdog when Chrome is hanging. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/window_manager.git@master
Patch Set: fix typo in comment Created 10 years 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
« no previous file with comments | « chrome_watchdog_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: event_loop.h
diff --git a/event_loop.h b/event_loop.h
index 3143301c6dcaa8208bcda9bd30ce989494644acf..8712626c6128ce6c1230ff6615fa75220f4dbeb3 100644
--- a/event_loop.h
+++ b/event_loop.h
@@ -23,6 +23,9 @@ class EventLoop {
EventLoop();
~EventLoop();
+ // Get the number of current-registered timeouts. Used for testing.
+ int num_timeouts() const { return timeout_fds_.size(); }
+
// Loop until Exit() is called, waiting for FDs to become readable or
// timeouts to fire.
void Run();
« no previous file with comments | « chrome_watchdog_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698