Class AffinitySupportThread
Inheritance
System.Object
AffinitySupportThread
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FixAntenna.FixEngine.Session.IOThreads
Assembly: FixAntenna.Core.dll
Syntax
public abstract class AffinitySupportThread : IDisposable, IWorkerThread
Constructors
AffinitySupportThread(String)
Declaration
public AffinitySupportThread(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Properties
WorkerThread
Declaration
public Thread WorkerThread { get; }
Property Value
Type | Description |
---|---|
System.Threading.Thread |
Methods
ApplyAffinity(Int32[])
This method pins current thread to the first defined parameter with cpu id.
Declaration
protected void ApplyAffinity(params int[] affinities)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | affinities |
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
IsAffinityDefined(Int32)
Declaration
protected static bool IsAffinityDefined(int affinity)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | affinity |
Returns
Type | Description |
---|---|
System.Boolean |
Join()
Declaration
public virtual void Join()
Run()
Declaration
protected abstract void Run()
Shutdown()
Declaration
public virtual void Shutdown()
Start()
Declaration
public virtual void Start()
Implements
System.IDisposable