C# Класс 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.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

ThreadSwitcher() публичный Метод

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.
Результат System