diff options
author | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-07 08:08:29 +0000 |
---|---|---|
committer | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-07 08:08:29 +0000 |
commit | 752578567cc199568f0522fd0a95589d5cc822fc (patch) | |
tree | d716dac10bc6718da7ebd006d9eac39720cf3e2a /base/tracked.h | |
parent | 8c3f250cd0044b40992a1926cb257baa1318fe75 (diff) | |
download | chromium_src-752578567cc199568f0522fd0a95589d5cc822fc.zip chromium_src-752578567cc199568f0522fd0a95589d5cc822fc.tar.gz chromium_src-752578567cc199568f0522fd0a95589d5cc822fc.tar.bz2 |
Eliminate the TimerManager by pulling its priority queue into MessageLoop. This CL also eliminates TaskBase by creating a simple PendingTask struct that is allocated inline within a std::queue used to implement the queues in the MessageLoop class.
R=jar
Review URL: http://codereview.chromium.org/483
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1825 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/tracked.h')
-rw-r--r-- | base/tracked.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/tracked.h b/base/tracked.h index dbcc106..f976175 100644 --- a/base/tracked.h +++ b/base/tracked.h @@ -108,6 +108,8 @@ class Tracked { bool MissingBirthplace() const; private: +#ifdef TRACK_ALL_TASK_OBJECTS + // Pointer to instance were counts of objects with the same birth location // (on the same thread) are stored. Births* tracked_births_; @@ -116,6 +118,8 @@ class Tracked { // reset before the object begins it active life. Time tracked_birth_time_; +#endif // TRACK_ALL_TASK_OBJECTS + DISALLOW_COPY_AND_ASSIGN(Tracked); }; |