use a awaiting handle to wrap all resource from task publish
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
//
|
||||
// -----------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------
|
||||
using StgSharp.HighPerformance;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
@@ -216,4 +217,18 @@ namespace StgSharp.Mathematics.Numeric
|
||||
DeepSleep = ThreadPriority.Lowest,
|
||||
|
||||
}
|
||||
|
||||
public class MatrixComputeResource
|
||||
{
|
||||
|
||||
public IEnumerable<MatrixParallelWrap> Wraps { get; set; }
|
||||
|
||||
public int WorkingThreadCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Closure task leader should do to collect results.
|
||||
/// </summary>
|
||||
public unsafe IntPtr LeaderClosurePackage { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user