commit | b28686f95daee16edeb5f39af2cd5274ac3dc99f | [log] [tgz] |
---|---|---|
author | Glenn Kasten <gkasten@google.com> | Fri Jan 06 08:39:38 2012 -0800 |
committer | Glenn Kasten <gkasten@google.com> | Fri Feb 10 15:02:44 2012 -0800 |
tree | 84d9f579f42b724ca4c1dce405f3c8a5901e9d9d | |
parent | 7ae4a2c130ec2cb5dec69d095b810698acc543b3 [diff] |
Simplify ThreadBase::exit() aka requestExitAndWait We can remove mExiting and use Thread::exitPending() instead. The local sp<> on "this" in exit() is not needed, since the caller must also hold an sp<> in order to be calling us. (Unless it was using a raw pointer, but that would be dangerous for other reasons.) Add comment explaining the mLock in exit(). Change-Id: I319e5107533a1a7cdbd13c292685f3e2be60f6c4