Tighten handling of pthread_create errors on Linux.
authorvitalyr@chromium.org <vitalyr@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 9 Nov 2011 19:02:41 +0000 (19:02 +0000)
committervitalyr@chromium.org <vitalyr@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 9 Nov 2011 19:02:41 +0000 (19:02 +0000)
commit0ec3ba8fe4f20ea86866ed7f3b0a4eb028d5b5aa
treea7d663887850000e36b58e33ec4ed7921811764d
parent8a074ba183f6a1ce0f5d9dc67f1dc5f4ae9eef8f
Tighten handling of pthread_create errors on Linux.

The return value of pthread_create is now checked to be 0.
Tests on MIPS boards had some silent and hard to find timeouts and errors related to this.
This ensures a proper error message and shutdown if a thread could not be started.

BUG=
TEST=

Review URL: http://codereview.chromium.org/8497041
Patch from Gergely Kis <gergely@homejinni.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9945 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/platform-linux.cc