commit | 35883cc623fdf475a4ead1dafcba9e9becc1ed11 | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Tue Nov 13 14:08:12 2012 -0800 |
committer | Mathieu Chartier <mathieuc@google.com> | Tue Nov 13 16:33:39 2012 -0800 |
tree | 792bdfcb0a556f7c54a35d9c0e4409d3ca4dd2e5 | |
parent | ec13743da80a80c1817cf6660c28917fc28846bc [diff] |
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