commit | e46cd75f182a3d738c5e2ef3cc90b2f0b1de56ee | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Wed Oct 31 16:56:18 2012 -0700 |
committer | Mathieu Chartier <mathieuc@google.com> | Wed Oct 31 16:56:18 2012 -0700 |
tree | ffd976fbc1195cddbb956f87a73d423d611b3cf9 | |
parent | 332f6827edf72f9b3d247a6c2fa79e4d520a409d [diff] |
Fix race condition in thread pool shutdown We were not holding the task queue lock when we did broadcast, causing a race where a thread waits on the CV after the broadcast. Fixes dex2oat deadlocking. Change-Id: I84f30020511c2bd43f71d9b7b392720bd8d03eab