Esempio n. 1
0
        public PluginEvent PushEvent(EnumPluginEventType ePluginEventType)
        {
            PluginEvent pluginEvent = new PluginEvent();

            pluginEvent.Type = ePluginEventType;
            this.m_queuePluginEvent.Enqueue(pluginEvent);
            return(pluginEvent);
        }
Esempio n. 2
0
 public bool PopEvent(out PluginEvent pluginEvent)
 {
     if (this.m_queuePluginEvent.Count > 0)
     {
         pluginEvent = this.m_queuePluginEvent.Dequeue();
         return(true);
     }
     pluginEvent = null;
     return(false);
 }