コード例 #1
0
ファイル: Automata.Process.Thread.cs プロジェクト: Egaros/lib
                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();
                }