Boost logo

Boost :

From: William E. Kempf (williamkempf_at_[hidden])
Date: 2002-08-12 11:47:32


----- Original Message -----
From: "Victor A. Wagner, Jr." <vawjr_at_[hidden]>
> At Monday 2002/08/12 05:53, you wrote:
> >>If join is called on a thread that terminated through an exception, then
you
> >>could notify the caller of join that the thread terminated through an
> >>uncaught exception, but that is another issue.
> >
> >And how do other threads know that the thread has terminated?
>
> how does join() work?

Through very explicit thread safe synchronization. Apples and oranges, and
you can't begin to compare the two.

> > And remember the mechanism needs to be thread safe. And even after
> > that, what should I do with the knowledge if the thread in question is
> > one created by some library?
>
> if you know it's being "join()ed" does it matter who created it?

First, I never claimed you knew it was being join()ed. Second, yes it very
much matters who created it. He's the only one likely to have any way of
dealing with the exception.

Bill Kempf


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk