summaryrefslogtreecommitdiffstats
path: root/base/thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/thread.cc')
-rw-r--r--base/thread.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/base/thread.cc b/base/thread.cc
index 387b1c5..f447fbb 100644
--- a/base/thread.cc
+++ b/base/thread.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -29,7 +29,9 @@ struct Thread::StartupData {
// Used to synchronize thread startup.
WaitableEvent event;
- StartupData(const Options& opt) : options(opt), event(false, false) {}
+ explicit StartupData(const Options& opt)
+ : options(opt),
+ event(false, false) {}
};
Thread::Thread(const char *name)
@@ -161,6 +163,7 @@ void Thread::ThreadMain() {
// We can't receive messages anymore.
message_loop_ = NULL;
+ thread_id_ = 0;
}
} // namespace base