[android-developers] Re: Stopping a long-running thread when a service is destroyed
On 4 mar, 20:21, Mark Murphy <mmur...@commonsware.com> wrote:
> Active threads are not eligible for GC, as they are held by the OS.
Oh ok, I did not know that, this is very interesting.
> On Sun, Mar 4, 2012 at 8:04 AM, Romain Guidoux <romain.guid...@gmail.com> wrote:
> Why do you think you "have" to do this? onDestroy() should not be
> "waiting" for anything.
Well, I did not absolutely wanted to wait in the onDestroy() method,
but I wanted my thread stuff to terminate in a good and safe state.
But now I know that a running thread cannot be GC, I have no reason to
wait anymore.
Thanks for your help !
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home