commit | a538e268e653d8fa1ea27659f507bc0ce5ceead0 | [log] [tgz] |
---|---|---|
author | Glenn Kasten <gkasten@google.com> | Thu Jun 02 08:59:28 2011 -0700 |
committer | Alex Ray <aray@google.com> | Tue Jul 30 13:56:57 2013 -0700 |
tree | 4426a4dd3204a61e166868bd789dac6783e43157 | |
parent | bf7a884f22299ad424e350c497248bf6cdcd6467 [diff] |
Remove redundant memory barrier pthread_create already includes the necessary memory barriers: - parent at pthread_create : pthread_mutex_unlock(start_mutex) - child at __thread_entry : pthread_mutex_lock(start_mutex) Add lock around uses of mThread. Added comments: - uses of mThread require lock - androidCreateRawThreadEtc returned ID is not safe for direct use from non-parent threads. Change-Id: I18cb296b41ddaf64cf127b57aab31154319b5970