From 781a7edbdb3288b237acbeff4926b47b243cef17 Mon Sep 17 00:00:00 2001 From: "darin@chromium.org" Date: Tue, 23 Feb 2010 07:12:22 +0000 Subject: Add MessageLoop::QuitNow and use it to terminate a sync IPC. This is a test to observe the performance impact of this change. As such, I'm reverting r39518 as part of this change. R=jam BUG=36310 TEST=none Review URL: http://codereview.chromium.org/652089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39699 0039d316-1c4b-4281-b951-d872f2087c98 --- base/message_loop.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'base/message_loop.h') diff --git a/base/message_loop.h b/base/message_loop.h index 0338963..1a04323 100644 --- a/base/message_loop.h +++ b/base/message_loop.h @@ -158,6 +158,10 @@ class MessageLoop : public base::MessagePump::Delegate { // void Quit(); + // This method is a variant of Quit, that does not wait for pending messages + // to be processed before returning from Run. + void QuitNow(); + // Invokes Quit on the current MessageLoop when run. Useful to schedule an // arbitrary MessageLoop to Quit. class QuitTask : public Task { -- cgit v1.1