mirror of
https://github.com/farcasclaudiu/SmartThreadPool.git
synced 2026-06-28 19:01:09 +03:00
Fixed Pipe implementation
This commit is contained in:
@@ -1628,7 +1628,7 @@ namespace Amib.Threading
|
|||||||
public void Pipe<T>(T pipeState, IEnumerable<Action<T>> actions)
|
public void Pipe<T>(T pipeState, IEnumerable<Action<T>> actions)
|
||||||
{
|
{
|
||||||
WIGStartInfo wigStartInfo = new WIGStartInfo { StartSuspended = true };
|
WIGStartInfo wigStartInfo = new WIGStartInfo { StartSuspended = true };
|
||||||
IWorkItemsGroup workItemsGroup = CreateWorkItemsGroup(int.MaxValue, wigStartInfo);
|
IWorkItemsGroup workItemsGroup = CreateWorkItemsGroup(1, wigStartInfo);
|
||||||
foreach (Action<T> action in actions)
|
foreach (Action<T> action in actions)
|
||||||
{
|
{
|
||||||
Action<T> act = action;
|
Action<T> act = action;
|
||||||
|
|||||||
Reference in New Issue
Block a user