diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-21 06:11:11 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-21 06:11:11 +0000 |
commit | 0bb07852c6769a990a585a740613014520503dfe (patch) | |
tree | e9d580bd4286e428f66aba5c64e83fab475e4f5a /base/message_loop.h | |
parent | f6f7e9f58f9d8c6b676ae26f462a4bb9f079bdcd (diff) | |
download | chromium_src-0bb07852c6769a990a585a740613014520503dfe.zip chromium_src-0bb07852c6769a990a585a740613014520503dfe.tar.gz chromium_src-0bb07852c6769a990a585a740613014520503dfe.tar.bz2 |
Test of performance value of reducing calls to Now().
I'll revert asap, once the perf bots have kicked off.
TBR=mbelshe
Review URL: http://codereview.chromium.org/3936003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63332 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop.h')
-rw-r--r-- | base/message_loop.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/base/message_loop.h b/base/message_loop.h index 94e0096..578f5c5 100644 --- a/base/message_loop.h +++ b/base/message_loop.h @@ -442,6 +442,11 @@ class MessageLoop : public base::MessagePump::Delegate { // Contains delayed tasks, sorted by their 'delayed_run_time' property. DelayedTaskQueue delayed_work_queue_; + // Contains delayed tasks (popped from delayed_work_queue_) that have already + // passed their expiration time, and can be run. They are ordered exactly as + // they were on the delayed_work_queue_ when popped. + TaskQueue ripe_work_queue_; + // A queue of non-nestable tasks that we had to defer because when it came // time to execute them we were in a nested message loop. They will execute // once we're out of nested message loops. |