[Mono-list] Re: From a signal to a ThreadAbort
robertj at gmx.net
Sun May 7 08:34:31 EDT 2006
Barry James wrote:
> What's the recommended way to get a Unix signal to trigger a ThreadAbort
> in a particular thread? The documentation says only variables can be set
> during the execution of a signal handler. Is a call to Thread.Abort safe?
It's not safe. Set up a thread that polls the variable every x msecs
and react upon the variable's value. Assure, that the signal handler's
method is already JITed (simply call it once) before it gets invoked
as a true signal handler.
Here is a good sample:
More information about the Mono-list