[NaCl SDK] Fix initialization of pthread_t in dlopen example
commitb1904c3552fd0a572426430462c912efee2e0a98
authorsbc <sbc@chromium.org>
Tue, 21 Jul 2015 19:36:30 +0000 (21 12:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 21 Jul 2015 19:48:17 +0000 (21 19:48 +0000)
tree55ecaf36b296f138cdb4302bb0ab6042a59b3cbe
parente1f6f228d129a7611e98ac399e19949a11c42580
[NaCl SDK] Fix initialization of pthread_t in dlopen example

Initializing a pthread_t to NULL (or any value really)
is not valid.  This causes a compiler warning with the new
arm glibc toolchain so needs to be fixed because we
enable the new toolchain.

Turns out the pid_ member was not even needed so this
change removes it and adds a pthread_detach call which
allows for freeing on the thread's resources
(in the absence of pthread_join).

CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_nacl_sdk;tryserver.chromium.mac:mac_nacl_sdk
BUG=505885

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

Cr-Commit-Position: refs/heads/master@{#339720}
native_client_sdk/src/examples/tutorial/dlopen/dlopen.cc