예제 #1
0
            /// <summary>
            /// Static constructor initialises all static members.
            /// </summary>
            static EnqueueEventForwarder()
            {
                // Create the mutex
                mEventMutex = new Mutex(false);

                // Create the dictionary
                mEventList = new Dictionary <long, EnqueueEventForwarder>();

                // Create the native callback delegate
                mNativeCallback = new EnqueueCallback(EnqueueEventForwarder.OnEvent);

                // Reset the key value
                mNextKey = 0;
            }
예제 #2
0
파일: MamaQueue.cs 프로젝트: jacobraj/MAMA
            /// <summary>
            /// Static constructor initialises all static members.
            /// </summary>
            static EnqueueEventForwarder()
            {
                // Create the mutex
                mEventMutex = new Mutex(false);

				// Create the dictionary
                mEventList = new Dictionary<long, EnqueueEventForwarder>();

                // Create the native callback delegate
                mNativeCallback = new EnqueueCallback(EnqueueEventForwarder.OnEvent);

                // Reset the key value
                mNextKey = 0;
            }