
Roland Schwarz <roland.schwarz@chello.at> 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 -- Anthony Williams Just Software Solutions Ltd - http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL