commit | 761286f65b4afd19180b1f6814ee27f0f585a5f0 | [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 | 78865e19dbf34df6d330f81347523230f6cf3c18 | |
parent | f4aaf1f56247289838f4bb25ee704196464be4f2 [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