add scheduler method; fixing buffer parallel errors

This commit is contained in:
Youmu Liu
2025-11-19 19:57:29 +08:00
parent 04fc55d31e
commit a29a442723
5 changed files with 84 additions and 6 deletions
@@ -97,6 +97,13 @@ namespace StgSharp.Mathematics.Numeric
private bool IsMultithread { get; init; }
public MatrixParallelThread DefineLeader()
{
MatrixParallelThread leader = _threads[1];
leader.Role = 2;
return leader;
}
public void Dispose()
{
if (_disposed) {