public Thread(ThreadParent parent, Node node, InstructionStream instructionStream, int instructionPointer, AutomataContextState contextState) : this() { CurrentNode = node; InstructionPointer = instructionPointer; ContextState = contextState; InstructionStream = instructionStream.AddReference(); InstructionStream.LockPointer(InstructionPointer); if (parent == null) { return; } Parent = parent; Parent.AddReference(); }