commit | 0cdb680c7648b0f48e6513926cb0a06d290a5cbe | [log] [tgz] |
---|---|---|
author | Jurijs Oniscuks <jurijs.oniscuks@sonymobile.com> | Thu Jul 05 15:35:05 2012 +0200 |
committer | Kenneth Andersson <kenneth.andersson@sonymobile.com> | Fri Aug 17 10:28:20 2012 +0200 |
tree | 59b95673aa8d732555c16ea57646ad61d2d49680 | |
parent | 9997f9a3edac2baac244c2fe8e49685a3be9f482 [diff] |
Fix race condition in pthread_create() Do not send "&this->mThread" to pthread_create() as newly created thread can "delete this" before pthread_create() saves thread id. This would lead to heap corruption. Change-Id: I9c4cd5e1002b85985514a36ae542778a783db6fb