Table of Contents

Class DisposerThread

Namespace
FinanceSharp
Assembly
FinanceSharp.dll

A thread

public class DisposerThread : IDisposable
Inheritance
DisposerThread
Implements
Inherited Members
Extension Methods

Constructors

DisposerThread()

Initializes a new instance of the object class.

protected DisposerThread()

Fields

Instance

public static DisposerThread Instance

Field Value

DisposerThread

InstanceQueue

protected static BusyBlockingCollection<object> InstanceQueue

Field Value

BusyBlockingCollection<object>

queue

protected BusyBlockingCollection<object> queue

Field Value

BusyBlockingCollection<object>

source

protected CancellationTokenSource source

Field Value

CancellationTokenSource

thread

protected Thread thread

Field Value

Thread

Methods

Cancel()

public void Cancel()

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Enqueue(Action)

public static void Enqueue(Action work)

Parameters

work Action

Enqueue(nint)

public static void Enqueue(nint ptr)

Parameters

ptr nint

Enqueue(GCHandle)

public static void Enqueue(GCHandle ptr)

Parameters

ptr GCHandle

Enqueue(void*)

public static void Enqueue(void* ptr)

Parameters

ptr void*