Description[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
Committed: https://crrev.com/b1904c3552fd0a572426430462c912efee2e0a98
Cr-Commit-Position: refs/heads/master@{#339720}
Patch Set 1 #
Messages
Total messages: 15 (7 generated)
|