Exemple #1
0
            internal static void Reset()
            {
                // Before call ensure that the arrival queue is empty.
                lock (WaitingSetLock)
                {
                    if (WaitingSet.Count > 0)
                    {
                        SnTrace.IndexQueue.Write("IAQ: RESET: WaitingSet.Count: {0}", WaitingSet.Count);
                    }

                    foreach (var activity in WaitingSet)
                    {
                        activity.Finish();
                    }
                    WaitingSet.Clear();
                }
            }
Exemple #2
0
 internal static void Start()
 {
     lock (WaitingSetLock)
         WaitingSet.Clear();
 }