C# Класс CSharpUtils.Threading.GreenThread

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
GreenThreadLastId int
MonitorThread Thread

Защищенные свойства (Protected)

Свойство Тип Описание
Action System.Action
CurrentThread Thread
Kill bool
ParentEvent System.Threading.ManualResetEvent
ParentThread Thread
ThisEvent System.Threading.ManualResetEvent
ThisGreenThreadList ThreadLocal

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

Метод Описание
Dispose ( ) : void
GreenThread ( ) : System
InitAndStartStopped ( System.Action Action ) : void
Stop ( ) : void
StopAll ( ) : void
SwitchTo ( ) : void

Called from the caller thread. This will give the control to the green thread.

ThisSemaphoreWaitOrParentThreadStopped ( ) : void
Yield ( ) : void

Called from the green thread. This will return the control to the caller thread.

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

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

public Dispose ( ) : void
Результат void

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

public GreenThread ( ) : System
Результат System

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

public InitAndStartStopped ( System.Action Action ) : void
Action System.Action
Результат void

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

public Stop ( ) : void
Результат void

StopAll() публичный статический Метод

public static StopAll ( ) : void
Результат void

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

Called from the caller thread. This will give the control to the green thread.
public SwitchTo ( ) : void
Результат void

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

public ThisSemaphoreWaitOrParentThreadStopped ( ) : void
Результат void

Yield() публичный статический Метод

Called from the green thread. This will return the control to the caller thread.
public static Yield ( ) : void
Результат void

Описание свойств

Action защищенное свойство

protected Action,System Action
Результат System.Action

CurrentThread защищенное свойство

protected Thread CurrentThread
Результат Thread

GreenThreadLastId публичное статическое свойство

public static int GreenThreadLastId
Результат int

Kill защищенное свойство

protected bool Kill
Результат bool

MonitorThread публичное статическое свойство

public static Thread MonitorThread
Результат Thread

ParentEvent защищенное свойство

protected ManualResetEvent,System.Threading ParentEvent
Результат System.Threading.ManualResetEvent

ParentThread защищенное свойство

protected Thread ParentThread
Результат Thread

ThisEvent защищенное свойство

protected ManualResetEvent,System.Threading ThisEvent
Результат System.Threading.ManualResetEvent

ThisGreenThreadList защищенное статическое свойство

protected static ThreadLocal ThisGreenThreadList
Результат ThreadLocal