C# Class NUnit.Framework.Internal.ThreadUtility

The ThreadUtility class encapsulates several static methods useful when working with threads.
Show file Open project: nunit/nunit

Public Methods

Method Description
Kill ( Thread thread ) : void

Do our best to Kill a thread

Kill ( Thread thread, object stateInfo ) : void

Do our best to kill a thread, passing state info

Method Details

Kill() public static method

Do our best to Kill a thread
public static Kill ( Thread thread ) : void
thread Thread The thread to kill
return void

Kill() public static method

Do our best to kill a thread, passing state info
public static Kill ( Thread thread, object stateInfo ) : void
thread Thread The thread to kill
stateInfo object Info for the ThreadAbortException handler
return void