Пример #1
0
        public static void EnsureEventQueueIsRunning()
        {
            Instance.keepRunning = true;

            if (!Instance.isRunning)
            {
                Instance.isRunning = true;
                GAThreading.ScheduleTimer(ProcessEventsIntervalInSeconds, "processEventQueue", ProcessEventQueue);
            }
        }
Пример #2
0
 private static void ProcessEventQueue()
 {
     ProcessEvents("", true);
     if (Instance.keepRunning)
     {
         GAThreading.ScheduleTimer(ProcessEventsIntervalInSeconds, "processEventQueue", ProcessEventQueue);
     }
     else
     {
         Instance.isRunning = false;
     }
 }