diff options
Diffstat (limited to 'base/threading/thread.cc')
-rw-r--r-- | base/threading/thread.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/threading/thread.cc b/base/threading/thread.cc index 616aac8..2a8d999 100644 --- a/base/threading/thread.cc +++ b/base/threading/thread.cc @@ -8,6 +8,7 @@ #include "base/third_party/dynamic_annotations/dynamic_annotations.h" #include "base/threading/thread_local.h" #include "base/synchronization/waitable_event.h" +#include "base/tracked_objects.h" namespace base { @@ -151,6 +152,9 @@ void Thread::ThreadMain() { ANNOTATE_THREAD_NAME(name_.c_str()); // Tell the name to race detector. message_loop.set_thread_name(name_); message_loop_ = &message_loop; +#if defined(TRACK_ALL_TASK_OBJECTS) + tracked_objects::ThreadData::InitializeThreadContext(name_); +#endif // TRACK_ALL_TASK_OBJECTS // Let the thread do extra initialization. // Let's do this before signaling we are started. |