Ensure ThreadPool constructor does not return until fully initialized.

Thread pool was being deleted too early during runtime shutdown,
this was causing a GC running during runtime shutdown to
occasionally reference a deleted thread pool.

Fixed an error where the thread pool was being deleted before the
threads were done attaching by making the thread pool constructor
block until all of the threads are attached.

Change-Id: I5f0884a74d78c4541ee0e582112857077f3f594f
7 files changed
tree: 792bdfcb0a556f7c54a35d9c0e4409d3ca4dd2e5
  1. build/
  2. jdwpspy/
  3. src/
  4. test/
  5. tools/
  6. .gitignore
  7. Android.mk