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"
Show file Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method Description
GetTrace ( StringBuilder sb ) : void

Traces all queued items on the ThreadPool.

Private Methods

Method 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 method

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