Kills this algorithm thread.
- msec (Int32)
- waits for at most msec milliseconds before returning
true: the thread has been successfully canceled. false: the thread has acknowledged the
cancellation request after msec milliseconds.
This method kills the algorithm thread without waiting for the algorithm to end. It waits for at most msec milliseconds for the algorithm thread to respond and acknowledge the cancellation.
You should always prefer the Cancel() method for the Kill() method. This gives the algorithm the chance to exit cleanly.
Calling this function will NOT call any StateChanged events.