commit | 2acc30f5f5533a239a80d3bd9102d2a4d2a7a51e | [log] [tgz] |
---|---|---|
author | Miao Wang <miaowang@google.com> | Mon Oct 05 16:13:51 2015 -0700 |
committer | Miao Wang <miaowang@google.com> | Mon Oct 05 16:13:51 2015 -0700 |
tree | 11083d174de83c1a5b6036dfc2d5b5f1e18f4362 | |
parent | ea6952c2aff3714798e706f83c280f92defa0919 [diff] |
Retry if interrupted before mMessageThread has joined. - Taking the same change from pirama in fw/base/rs: I3213091a0e996449bceb403dffca3063786d5a65 I452124915ea3f19610e6d4a3411d741f2f604af2 - If interrupted during mMessageThread.join(), retry the join instead of assuming the thread has joined and continuing. Continuing to destroy the context will cause a segfault when the message thread attempts to use the destroyed context. - Interrupt current thread if InterruptedException is received during Thread.join(). Also, log the interruption. Change-Id: Iaba078318141eb74d0cf20e00e47be0c8edde59f