I suggest that you look at the WaitHandle class, where you can use, perhaps,
WaitOne( int millisecondsTimeout, bool exitContext )
Then to interrupt it before the timeout, you'd use the Set method in one of
the derived, instantiable classes, such as AutoResetEvent.
You can check the return value of WaitOne to determine if it was a timeout
or an event.
Hope this helps,
Chris R.
"Muscha" <mu****@no.spam.net> wrote in message
news:On**************@TK2MSFTNGP09.phx.gbl...
Hello,
I have a thread that in the middle of the execution I did Thread.Sleep().
How do I tell this thread to abort it sleep and continues? Is there a way?
thanks,
/m