public void Stop() { if (!IsStarted) { return; } InputQueue.CompleteAdding(); lock (isStartedLock) { if (IsStarted == false) { return; } IsStarted = false; } InputQueue = null; OnDestroyed(); }
void RequestStopEventLoop() { InputQueue.CompleteAdding(); InputQueue = null; }