Boost logo

Boost :

From: Anthony Williams (anthony_w.geo_at_[hidden])
Date: 2007-11-02 12:49:07

Roland Schwarz <roland.schwarz_at_[hidden]> writes:

> Anthony Williams wrote:
>> I didn't see your previous suggestion to use "alert" rather than
>> "cancel". However, I do like interruption, and I have renamed cancellation to
>> interruption on trunk.
> Why not even take another step too:
> throw-at(threadid, exception);
> instead of interruption? After all it would underpin that interruption
> is not normal control flow.

That's a whole lot more heavyweight --- you'd have to transport the exception
into the thread in a type-safe manner in order to throw it. It's not
impossible --- you can copy the passed exception into a buffer along with a
function to throw it, and pass that over to the thread --- but it's
conceptually a lot more complicated.


Anthony Williams
Just Software Solutions Ltd -
Registered in England, Company Number 5478976.
Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL

Boost list run by bdawes at, gregod at, cpdaniel at, john at