Esempio n. 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;
            }
Esempio n. 2
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;
            }