[POSIX] Fix pthread_create check
commit7a5506d3176efc746a78b4dbcfe8bfb39da53158
authorboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 16 May 2014 00:40:35 +0000 (16 00:40 +0000)
committerboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 16 May 2014 00:40:35 +0000 (16 00:40 +0000)
treec3cd843c3561ed2feb1d093aab3332b3bb92a75a
parent6de5838db6e5afe923092cf1de1ca80caf47b5fd
[POSIX] Fix pthread_create check

When pthread_create create fails, the content of handle becomes
undefined, but PlatformThreadHandle::platform_handle is initialized to
0, which makes the CHECK_EQ fail.

Fix by resetting handle to 0 if pthread_create fails.

BUG=373905

Review URL: https://codereview.chromium.org/289013003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270875 0039d316-1c4b-4281-b951-d872f2087c98
base/threading/platform_thread_posix.cc