commit | ac61abe286a768445670a2d0e0cf99de0e697718 | [log] [tgz] |
---|---|---|
author | Mike Lockwood <lockwood@android.com> | Mon Jan 24 15:20:05 2011 -0800 |
committer | Alex Ray <aray@google.com> | Tue Jul 30 13:56:55 2013 -0700 |
tree | 2218519038f526716b150447b7d5fde2475de0d8 | |
parent | b90c51a7258966c0372a84ec2059fd1b03e2a782 [diff] |
libutils: Fix race condition in Thread::requestExitAndWait() Hold a reference to the thread in requestExitAndWait() so the condition variable it is waiting on will not be destroyed before its wait() call returns. Change-Id: If8b6cf84117203926a4180f43f0224469e92a500 Signed-off-by: Mike Lockwood <lockwood@android.com>