commit | 29f1ae91f5c714afa710a9b7b88064e85250bb31 | [log] [tgz] |
---|---|---|
author | Felipe Leme <felipeal@google.com> | Thu Oct 03 15:38:43 2019 -0700 |
committer | Felipe Leme <felipeal@google.com> | Wed Oct 09 10:15:16 2019 -0700 |
tree | 83495a02b4e407c86be2b097921ca84969198416 | |
parent | b71657a60aaedf7771daeca015bf48d87cf81230 [diff] |
Minor improvements on SystemServerInitThreadPool: - Log number of threads on constructor. - Use explicit, private lock object so callers cannot accidentally cause dead locks. - Add a new method to explicitly start it. - Let the whole object be GC'ed when done. - Don't let tasks be submitted after it's been shutdown. Bug: 141571552 Test: manual verification Change-Id: Ibff5f014e17366ab2eec9b64da00c9416d98fc54