protected void BranchNode(IMHComputeNode <T> n) { n.Branch(); foreach (IMHComputeNode <T> child in n.GetChildren()) { forBranching_.Put(child); } }
int sectionTimeOut; // minutes waits for joining the thread running branch and merge process. public MHComputeNodeEvaluator(MHComputeNode <T> root, int sectionTimeOut = 30) { root_ = root; forBranching_ = new ParallelStack <IMHComputeNode <T> >(); forBranching_.Put(root); }
public void AddTask(Task t) { tasks_.Put(t); }