diff options
| author | Glenn Kasten <gkasten@google.com> | 2011-06-02 08:59:28 -0700 |
|---|---|---|
| committer | Glenn Kasten <gkasten@google.com> | 2011-06-10 17:07:46 -0700 |
| commit | d9e1bb76fe1e01fb79bb65959b92051aa18fddbe (patch) | |
| tree | 01d4ae97d8d952940f8b48c47b7f670315756e9b /opengl/tests/gl_basic/gl_basic.cpp | |
| parent | 53df9ca28f6cfe9acf897579985ef6fcde13cb21 (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
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions
