bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thread and join


From: David Sugar
Subject: Re: Thread and join
Date: Fri, 11 Jan 2002 18:50:37 -0500 (EST)

Yes.  If it's deferred the current thread will wait on the delete to
complete as part of a join.

On Fri, 11 Jan 2002, Daniel E Baumann wrote:

> 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?
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]