commit | 7f97a76b805b4cc05f83a965063767f0256ea270 | [log] [tgz] |
---|---|---|
author | kkinnunen <kkinnunen@nvidia.com> | Wed Nov 04 06:30:17 2015 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Wed Nov 04 06:30:17 2015 -0800 |
tree | 8bfd8b01dddd43d7f5044a5f97cd61fcc7e3e7f1 | |
parent | f57ef1c05f7ff20a80a8ef01a3fb3d4666612de2 [diff] |
Avoid hang in OncePtr test with --threads 1 Avoid hang in OncePtr test when using "dm --threads 1". The test will hang the threads until sk_num_cores() threads have run the code. This requires that sk_num_cores() threads to be run in parallel, which the global thread pool will not do if the thread count is smaller than sk_num_cores(). BUG=skia: Review URL: https://codereview.chromium.org/1419593004