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

Unified Diff: base/threading/worker_pool_posix.h

Issue 8233037: Update task tracking to not depend on message_loop_ singleton (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « base/message_loop.cc ('k') | base/threading/worker_pool_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/worker_pool_posix.h
===================================================================
--- base/threading/worker_pool_posix.h (revision 104925)
+++ base/threading/worker_pool_posix.h (working copy)
@@ -31,11 +31,13 @@
#include "base/basictypes.h"
#include "base/callback.h"
#include "base/location.h"
+#include "base/time.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/synchronization/condition_variable.h"
#include "base/synchronization/lock.h"
#include "base/threading/platform_thread.h"
+#include "base/tracked_objects.h"
class Task;
@@ -50,11 +52,15 @@
PendingTask(const tracked_objects::Location& posted_from,
const base::Closure& task);
~PendingTask();
- // TODO(ajwong): After we figure out why Mac's ~AtExitManager dies when
- // destructing the lock, add in extra info so we can call
- // tracked_objects::TallyADeathIfActive() and
- // tracked_objects::TallyABirthIfActive correctly.
+#if defined(TRACK_ALL_TASK_OBJECTS)
+ // Counter for location where the Closure was posted from.
+ tracked_objects::Births* post_births;
+
+ // Time the task was posted.
+ TimeTicks time_posted;
+#endif // defined(TRACK_ALL_TASK_OBJECTS)
+
const tracked_objects::Location posted_from;
// The task to run.
« no previous file with comments | « base/message_loop.cc ('k') | base/threading/worker_pool_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698