Skip to content

Commit a9e6df8

Browse files
committed
- readme
1 parent 9eb43d6 commit a9e6df8

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Shuttle.Core.Threading
22

3-
Provides various classes to facilitate thread-based processing.
3+
```
4+
PM> Install-Package Shuttle.Core.Autofac
5+
```
46

5-
Visit the [documentation site](http://shuttle.github.io/shuttle-core/).
7+
Provides various classes and interfaces to facilitate thread-based processing.
8+
9+
## ProcessorThreadPool
10+
11+
``` c#
12+
public ProcessorThreadPool(string name, int threadCount, IProcessorFactory processorFactory)
13+
```
14+
15+
Each thread pool has a `name` used only for identyfing the pool and for logging. The `threadCount` is specified and will run a `Thread` that calls the `IProcessor.Execute(IThreadState state)` instance provided by the `IProcessorFactory.Create()` method in a loop while the `IThreadState.Active` returns true.

0 commit comments

Comments
 (0)