Class ThreadPool
Inheritance
System.Object
ThreadPool
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.Common.Threading
Assembly: FixAntenna.Common.dll
Syntax
public sealed class ThreadPool
Constructors
ThreadPool(Int32, ISimpleBlockingQueue<IRunnableObject>)
Declaration
public ThreadPool(int noOfThreads, in ISimpleBlockingQueue<IRunnableObject> queue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | noOfThreads | |
| ISimpleBlockingQueue<IRunnableObject> | queue |
ThreadPool(Int32, String, ISimpleBlockingQueue<IRunnableObject>)
Declaration
public ThreadPool(int noOfThreads, string threadNamePrefix, in ISimpleBlockingQueue<IRunnableObject> queue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | noOfThreads | |
| System.String | threadNamePrefix | |
| ISimpleBlockingQueue<IRunnableObject> | queue |
Methods
Execute(IRunnableObject)
Declaration
public void Execute(IRunnableObject task)
Parameters
| Type | Name | Description |
|---|---|---|
| IRunnableObject | task |
Stop(Boolean)
Declaration
public void Stop(in bool interrupt)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | interrupt |