public void Stop() { scriptThreadpool.Restart(); scriptChangeThreadpool.Restart(); cmdThreadpool.Restart(); LUQueue.Clear(); QueueItemStruct itm; while (ScriptEvents.TryDequeue(out itm)) { ; } lock (SleepingScriptEvents) SleepingScriptEvents.Clear(); }
public void Stop() { scriptThreadpool.Restart(); scriptChangeThreadpool.Restart(); cmdThreadpool.Restart(); }