C# Class CSharpUtils.Threading.GreenThread

Inheritance: IDisposable
Afficher le fichier Open project: soywiz/csharputils Class Usage Examples

Méthodes publiques

Свойство Type Description
GreenThreadLastId int
MonitorThread Thread

Protected Properties

Свойство Type Description
Action System.Action
CurrentThread Thread
Kill bool
ParentEvent System.Threading.ManualResetEvent
ParentThread Thread
ThisEvent System.Threading.ManualResetEvent
ThisGreenThreadList ThreadLocal

Méthodes publiques

Méthode Description
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.

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GreenThread() public méthode

public GreenThread ( ) : System
Résultat System

InitAndStartStopped() public méthode

public InitAndStartStopped ( System.Action Action ) : void
Action System.Action
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

StopAll() public static méthode

public static StopAll ( ) : void
Résultat void

SwitchTo() public méthode

Called from the caller thread. This will give the control to the green thread.
public SwitchTo ( ) : void
Résultat void

ThisSemaphoreWaitOrParentThreadStopped() public méthode

public ThisSemaphoreWaitOrParentThreadStopped ( ) : void
Résultat void

Yield() public static méthode

Called from the green thread. This will return the control to the caller thread.
public static Yield ( ) : void
Résultat void

Property Details

Action protected_oe property

protected Action,System Action
Résultat System.Action

CurrentThread protected_oe property

protected Thread CurrentThread
Résultat Thread

GreenThreadLastId public_oe static_oe property

public static int GreenThreadLastId
Résultat int

Kill protected_oe property

protected bool Kill
Résultat bool

MonitorThread public_oe static_oe property

public static Thread MonitorThread
Résultat Thread

ParentEvent protected_oe property

protected ManualResetEvent,System.Threading ParentEvent
Résultat System.Threading.ManualResetEvent

ParentThread protected_oe property

protected Thread ParentThread
Résultat Thread

ThisEvent protected_oe property

protected ManualResetEvent,System.Threading ThisEvent
Résultat System.Threading.ManualResetEvent

ThisGreenThreadList protected_oe static_oe property

protected static ThreadLocal ThisGreenThreadList
Résultat ThreadLocal