C# Class GSF.Diagnostics.ThreadPoolTrace

Executes a trace on the ThreadPool for all callbacks currently queued. This will not include work items that have a time delayed callback.
This class heavily relies on reflection to get the ThreadPool queue. Therefore it is very unlikely to work in MONO and can break if Microsoft changes any of the member names or how the ThreadPool works. In this case WorksInThisRuntime will be set to false and GetTrace will return "Not Supported"
Afficher le fichier Open project: GridProtectionAlliance/gsf Class Usage Examples

Méthodes publiques

Méthode Description
GetTrace ( StringBuilder sb ) : void

Traces all queued items on the ThreadPool.

Private Methods

Méthode Description
ProcessIThreadPoolWorkItem ( StringBuilder sb, object item ) : void
ThreadPoolTrace ( ) : System
TryProcessThreadingTimerCallback ( StringBuilder sb, WaitCallback callback, object state ) : bool
TryProcessTimersTimerCallback ( StringBuilder sb, TimerCallback timerCallback ) : bool

Method Details

GetTrace() public static méthode

Traces all queued items on the ThreadPool.
public static GetTrace ( StringBuilder sb ) : void
sb StringBuilder
Résultat void