OSDN Git Service

Retry if interrupted before mMessageThread has joined
authorPirama Arumuga Nainar <pirama@google.com>
Fri, 2 Oct 2015 19:06:10 +0000 (12:06 -0700)
committerPirama Arumuga Nainar <pirama@google.com>
Fri, 2 Oct 2015 22:30:33 +0000 (15:30 -0700)
commit677754225d9dcd3982d486bc4ead31d6f74de89b
tree9230efafc41fdf9f656f13a89c23f96ad355450a
parent3af80eff608b2ee2de7291f82b9163d5df4b15cf
Retry if interrupted before mMessageThread has joined

Bug: 24342101

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.

Change-Id: I3213091a0e996449bceb403dffca3063786d5a65
(cherry picked from commit 2f25ce7753f7f1f6a0cc549a0df0082286bd5f85)
rs/java/android/renderscript/RenderScript.java