summaryrefslogtreecommitdiff
path: root/base/threading/thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/threading/thread.cc')
-rw-r--r--base/threading/thread.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/base/threading/thread.cc b/base/threading/thread.cc
index c30320f0dc..0aeed2a9e4 100644
--- a/base/threading/thread.cc
+++ b/base/threading/thread.cc
@@ -11,6 +11,7 @@
#include "base/logging.h"
#include "base/run_loop.h"
#include "base/synchronization/waitable_event.h"
+#include "base/third_party/dynamic_annotations/dynamic_annotations.h"
#include "base/threading/thread_id_name_manager.h"
#include "base/threading/thread_local.h"
#include "base/threading/thread_restrictions.h"
@@ -290,6 +291,7 @@ void Thread::ThreadMain() {
// Complete the initialization of our Thread object.
PlatformThread::SetName(name_.c_str());
+ ANNOTATE_THREAD_NAME(name_.c_str()); // Tell the name to race detector.
// Lazily initialize the |message_loop| so that it can run on this thread.
DCHECK(message_loop_);