Пример #1
0
        public SDKEvent PushEvent(EnumSDKEventType eSdkEventType)
        {
            SDKEvent e = new SDKEvent();

            e.Type = eSdkEventType;
            this.m_queueSDKEvent.Enqueue(e);
            return(e);
        }
Пример #2
0
        public bool PopEvent(out SDKEvent sdkEvent)
        {
            bool result;

            if (this.m_queueSDKEvent.Count > 0)
            {
                sdkEvent = this.m_queueSDKEvent.Dequeue();
                result   = true;
            }
            else
            {
                sdkEvent = null;
                result   = false;
            }
            return(result);
        }