Class PoolLinkedList
- Namespace
- SunamoThreading
- Assembly
- SunamoThreading.dll
A thread pool implementation using a linked-list-based worker queue. Workers process actions in FIFO order and are joined on disposal.
public sealed class PoolLinkedList : IDisposable
- Inheritance
-
PoolLinkedList
- Implements
- Inherited Members
- Extension Methods
Constructors
PoolLinkedList(int)
Initializes a new instance of the PoolLinkedList class with the specified number of worker threads.
public PoolLinkedList(int size)
Parameters
sizeintThe number of worker threads to create.
Methods
Dispose()
Disposes the pool by waiting for all pending tasks to complete and joining all worker threads.
public void Dispose()
QueueTask(Action)
Adds a new task to the queue for processing by a worker thread.
public void QueueTask(Action task)
Parameters
taskActionThe action to be queued for execution.