public SolovayStrassenTest(int id, GetNextNumber GetNext, ChangeCurrentNumber OnNumFound) { GetNext(ref _Current); _GetNext = GetNext; _OnNumFound = OnNumFound; Id = id; th = new Thread(ThreadTest); th.Priority = ThreadPriority.BelowNormal; }
private FermatsTest(BigInteger Cur, BigInteger MaxA, ChangeCurrentNumber OnFound) : this(Cur, MaxA) { this.OnNumFound = OnFound; }
public static FermatsTest Start(BigInteger bi, BigInteger Iters, GetNextNumber gn, ChangeCurrentNumber OnFound) { FermatsTest nw = new FermatsTest(bi, Iters, OnFound); nw.GetNext = gn; nw.Start(); return(nw); }