From affaf038456d5791cddd071fb35d240e24603c55 Mon Sep 17 00:00:00 2001 From: Youmu Liu <105042599+Nitload-NSI@users.noreply.github.com> Date: Wed, 22 Oct 2025 20:36:15 +0800 Subject: [PATCH] Put thread pool to individual type define as thread resource manager. --- StgSharp.Mathematics/Numeric/MatrixParallelWrap.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/StgSharp.Mathematics/Numeric/MatrixParallelWrap.cs b/StgSharp.Mathematics/Numeric/MatrixParallelWrap.cs index bcf37e8b..eef520c1 100644 --- a/StgSharp.Mathematics/Numeric/MatrixParallelWrap.cs +++ b/StgSharp.Mathematics/Numeric/MatrixParallelWrap.cs @@ -82,6 +82,8 @@ namespace StgSharp.Mathematics.Numeric set => Interlocked.Exchange(ref Unsafe.As(ref field), (int)value); } + internal int Magic { get; set; } + internal ManualResetEventSlim SchedulerReset { get; } = new(false); [MethodImpl(MethodImplOptions.AggressiveInlining)]