From 6413906c119090aa5d8ec4abfa83a6b65b51d404 Mon Sep 17 00:00:00 2001 From: "deanm@google.com" Date: Fri, 22 Aug 2008 17:22:49 +0000 Subject: Properly initialize PlatformThreadHandle. The Open Group Base Specifications Issue 6 states that pthread_t cannot be assumed to be a numeric type. It should be safe to value initialize it with (), even if it's a structure. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1226 0039d316-1c4b-4281-b951-d872f2087c98 --- base/simple_thread.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'base/simple_thread.h') diff --git a/base/simple_thread.h b/base/simple_thread.h index 44b397d..77754e9 100644 --- a/base/simple_thread.h +++ b/base/simple_thread.h @@ -98,11 +98,11 @@ class SimpleThread : public PlatformThread::Delegate { // "my_thread/321". The thread will not be created until Start() is called. SimpleThread(const Options& options, const std::string& name_prefix) : name_prefix_(name_prefix), name_(name_prefix_), options_(options), - thread_(0), event_(true, false), tid_(0), joined_(false) { } + thread_(), event_(true, false), tid_(0), joined_(false) { } SimpleThread() : name_prefix_("unnamed"), name_(name_prefix_), - thread_(0), event_(true, false), tid_(0), joined_(false) { } + thread_(), event_(true, false), tid_(0), joined_(false) { } virtual ~SimpleThread(); -- cgit v1.1