[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Thread and join
From: |
Daniel E Baumann |
Subject: |
Re: Thread and join |
Date: |
Fri, 11 Jan 2002 16:16:40 -0600 |
User-agent: |
Mutt/1.3.24i |
On Fri, Jan 11, 2002 at 01:33:54PM -0500, David Sugar wrote:
>
> If you delete the child thread with the delete operator from the main
> thread, the main thread will suspend pending on the join. Hence you only
> need to do a delete.
Cool, I was trying to figure out a way to do that also and what I did
was just use an Event object and Wait() on the thread (I also tried
calling Terminate() on the thread explicitly right after Start(), but
that didn't work). So if the thread you are trying to delete has
deferred cancellation set then the "current" thread will join on it,
hence waiting for it to hit a cancellation point?
--
Daniel E Baumann address@hidden
***Free Dmitry Sklyarov! Boycott Adobe! Repeal DMCA!***
And if cynics ridicule freedom, ridicule community...if ``hard nosed
realists'' say that profit is the only ideal...just ignore them, and use
copyleft all the same.
-- RMS