Chromium Code Reviews| Index: base/threading/thread.cc |
| diff --git a/base/threading/thread.cc b/base/threading/thread.cc |
| index 35e88a70569a2b6dfcae8122bab5290d57ed140a..123c9778bfd156d0d46fc62332307e244e23fc11 100644 |
| --- a/base/threading/thread.cc |
| +++ b/base/threading/thread.cc |
| @@ -66,7 +66,6 @@ Thread::Thread(const char* name) |
| Thread::~Thread() { |
| Stop(); |
| - ThreadIdNameManager::GetInstance()->RemoveName(thread_id_); |
| } |
| bool Thread::Start() { |
| @@ -121,6 +120,8 @@ void Thread::Stop() { |
| // |
| PlatformThread::Join(thread_); |
| + ThreadIdNameManager::GetInstance()->RemoveName(thread_id_); |
|
jar (doing other things)
2013/05/14 16:49:10
Given the problem you had... this solution is stil
dsinclair
2013/05/14 17:00:17
You're right, there is still a race here.
Looking
jar (doing other things)
2013/05/14 19:55:06
I don't fully grok the use case... but I suspect y
|
| + |
| // The thread should NULL message_loop_ on exit. |
| DCHECK(!message_loop_); |