commit | 520ddb785d32fef23039aa1b751ab40dc0d98eeb | [log] [tgz] |
---|---|---|
author | Miao Wang <miaowang@google.com> | Mon May 15 17:05:12 2017 -0700 |
committer | Miao Wang <miaowang@google.com> | Mon May 15 18:14:40 2017 -0700 |
tree | 4481e0f45ea977ce8d9d6f0f045898be363519fe | |
parent | 03ecfa26d472f298deddbe8dc08549abe17a793f [diff] |
Only try to join the pthread when it is successfully initialized. - When Context::initContext fail to initialize a pthread, it tries to join a invalid pthread in Context::~Context(), in certain circumstances. - This CL uses the Context::mRunning as an indicator of whether the pthread is successfully initialized, and only join it when mRunning is true. Bug: 38322462 Test: mm, boot sailfish, and CTS tests pass. Change-Id: I44525907b213a83a0654c731877c3277de249f24