Ejemplo n.º 1
0
        public void Stop()
        {
            if (!IsStarted)
            {
                return;
            }
            InputQueue.CompleteAdding();
            lock (isStartedLock)
            {
                if (IsStarted == false)
                {
                    return;
                }
                IsStarted = false;
            }

            InputQueue = null;
            OnDestroyed();
        }
Ejemplo n.º 2
0
 void RequestStopEventLoop()
 {
     InputQueue.CompleteAdding();
     InputQueue = null;
 }