L4 briefly pass unit test

This commit is contained in:
Youmu Liu
2026-03-18 17:53:28 +08:00
parent dccb815811
commit e3f2cf989d
12 changed files with 69 additions and 25 deletions
@@ -105,7 +105,7 @@ namespace StgSharp.Mathematics.Numeric
public void WaitAllWraps()
{
if (_disposed) {
throw new ObjectDisposedException(typeof(MatrixParallelWrap).Name);
throw new ObjectDisposedException(nameof(MatrixParallelWrap));
}
SpinWait.SpinUntil(() => Volatile.Read(ref _count) == 0);
}
@@ -114,7 +114,7 @@ namespace StgSharp.Mathematics.Numeric
internal void ReportThreadAccomplished()
{
if (_disposed) {
throw new ObjectDisposedException(typeof(MatrixParallelWrap).Name);
throw new ObjectDisposedException(nameof(MatrixParallelWrap));
}
Interlocked.Decrement(ref _count);
}