C# Class CsDebugScript.Engine.Debuggers.DbgEngDllHelpers.ThreadSwitcher

Used for scoped thread switching. using (var switcher = new ThreadSwitcher(thread)) { // Invoke DbgEng.dll interface function } Use this class for accessing thread information from DbgEng.dll interfaces to insure correct thread information access. For performance reasons, after using scope, previous thread won't be set until it is needed. Always use this class to insure correctness.
Inheritance: IDisposable
Show file Open project: southpolenator/WinDbgCs Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ThreadSwitcher ( StateCache stateCache, System.Thread thread ) : System

Initializes a new instance of the ThreadSwitcher class.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

ThreadSwitcher() public method

Initializes a new instance of the ThreadSwitcher class.
public ThreadSwitcher ( StateCache stateCache, System.Thread thread ) : System
stateCache StateCache The state cache.
thread System.Thread The thread.
return System