Ejemplo n.º 1
0
            public void Dispose()
            {
                if (m_cycleDetector != null)
                {
                    lock (m_cycleDetector.m_syncRoot)
                    {
                        m_cycleDetector.m_priority--;
                        if (m_cycleDetector.m_priority == 0 && m_cycleDetector.m_thread != null)
                        {
                            m_cycleDetector.m_thread.Priority = ThreadPriority.Normal;
                        }

                        m_cycleDetector = null;
                    }
                }
            }
Ejemplo n.º 2
0
 public EdgeSet(CycleDetector worker, Func <IValuePromise[]> valuePromiseChainGetter, Action cycleAnnouncer)
 {
     m_cycleDetector           = worker;
     m_valuePromiseChainGetter = valuePromiseChainGetter;
     CycleAnnouncer            = cycleAnnouncer;
 }
Ejemplo n.º 3
0
 public PriorityDecreaser(CycleDetector cycleDetector)
 {
     m_cycleDetector = cycleDetector;
 }