Boost logo

Boost :

From: Eric Woodruff (Eric.Woodruff_at_[hidden])
Date: 2002-08-11 14:54:56


Something like this?

I agree on principle that the default thread policy for a thread<void>
should be terminates_on_exception, but it's a little moot; the default for
all types is already that. It's just the nature of not specifying any
exceptions to default to that policy. Now if one specifies the
throws_exceptions policy, but no exceptions, bad_exception is thrown. That's
a possible topic for conversation, but I think everyone will agree that
throws_exceptions uses exceptions to communicate errors.

Anyhow, thread<void> will still work as naturally as it did before.

----- Original Message -----
From: Victor A. Wagner, Jr.
Newsgroups: gmane.comp.lib.boost.devel
Sent: Thursday, 2002:August:08 5:52 AM
Subject: Re: Re: Re: Threads & Exceptions

At Wednesday 2002/08/07 03:51, you wrote:
>From: "Victor A. Wagner, Jr." <vawjr_at_[hidden]>
> >
> > >We can special case thread<void> to terminate on exceptions, of course,
>but
> > >a consistent specification would be better.
> >
> > thread<nothrow> ?? (a poor attempt at levity)
>
>The more I think of it, the more I like the thread<void> special case. It
is
>logical: when you ask for a thread that returns a value, this implies that
>you will join() that thread. When you use thread<void>, you don't care
about
>the return value.
>
>This allows users to choose the exception handling policy in a natural way
>(often requested) without resorting to the...
>
> > maybe it should be a policy
>
>.... "We don't know how to design it, so we'll leave the design to you!
Don't
>you feel empowered?" method.

I wasn't suggesting we add a policy arg and NOT supply some meaningful
policies.

>_______________________________________________
>Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost

Victor A. Wagner Jr. http://rudbek.com
PGP RSA fingerprint = 4D20 EBF6 0101 B069 3817 8DBF C846 E47A
PGP D-H fingerprint = 98BC 65E3 1A19 43EC 3908 65B9 F755 E6F4 63BB 9D93
The five most dangerous words in the English language:
               "There oughta be a law"

_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost




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