Implements a class similar to the ThreadPool. Can be used in cases where the threadpool ist inappropiate. Additionally, the number of processing threads can be adjusted.
For a list of all members of this type, see AdvancedThreadPool Members.
System.Object
InfiniTec.SystemUtilities.AdvancedThreadPool
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
ThreadPool pool; public void Init() { pool = new ThreadPool(4); pool.ProcessObject += new ProcessObjectEventHandler(processObject); pool.Enqueue(objectToProcess); } void processObject(object source, ProcessObjectEventArgs e) { DoSomething(e.Object); }
Namespace: InfiniTec.SystemUtilities
Assembly: InfiniTec.SystemUtilities.AdvancedThreadPool (in InfiniTec.SystemUtilities.AdvancedThreadPool.dll)
AdvancedThreadPool Members | InfiniTec.SystemUtilities Namespace