Class TimeThreadPool
- Namespace
- SunamoThreading
- Assembly
- SunamoThreading.dll
Runs threads on a timed interval, starting a new thread each time the timer elapses.
public class TimeThreadPool
- Inheritance
-
TimeThreadPool
- Inherited Members
- Extension Methods
Constructors
TimeThreadPool(ParameterizedThreadStart, int, string[])
Initializes a new instance of the TimeThreadPool class. Third parameter cannot be params.
public TimeThreadPool(ParameterizedThreadStart threadStart, int maxConcurrentThreads, string[] arguments)
Parameters
threadStartParameterizedThreadStartThe method each thread will execute.
maxConcurrentThreadsintThe maximum number of threads allowed to run at the same time.
argumentsstring[]The arguments to pass to each thread, one per thread.
Methods
StopAll()
Stops all running threads and disposes the timer.
public void StopAll()