예제 #1
0
 private void Initialize()
 {
     this.m_StackOld       = new InterlockedStack();
     this.m_StackNew       = new InterlockedStack();
     this.m_QueuedRequests = new System.Collections.Queue();
     this.m_WaitHandles    = new WaitHandle[] { new System.Net.Semaphore(0, 0x100000), new ManualResetEvent(false), new Mutex() };
     this.m_ErrorTimer     = null;
     this.m_ObjectList     = new ArrayList();
     this.m_State          = State.Running;
 }
        /// <summary>
        ///    <para>Internal init stuff, creates stacks, queue, wait handles etc</para>
        /// </summary>
        private void Initialize()
        {
            m_StackOld = new InterlockedStack();
            m_StackNew = new InterlockedStack();

            m_QueuedRequests = new Queue();

            m_WaitHandles = new WaitHandle[3];
            m_WaitHandles[SemaphoreHandleIndex] = new Semaphore(0, MaxQueueSize);
            m_WaitHandles[ErrorHandleIndex]     = new ManualResetEvent(false);
            m_WaitHandles[CreationHandleIndex]  = new Mutex();

            m_ErrorTimer = null;          // No error yet.

            m_ObjectList = new ArrayList();
            m_State      = State.Running;
        }
        /// <summary>
        ///    <para>Internal init stuff, creates stacks, queue, wait handles etc</para>
        /// </summary>
        private void Initialize() {
            m_StackOld          = new InterlockedStack();
            m_StackNew          = new InterlockedStack();

            m_QueuedRequests = new Queue();

            m_WaitHandles     = new WaitHandle[3];
            m_WaitHandles[SemaphoreHandleIndex] = new Semaphore(0, MaxQueueSize);
            m_WaitHandles[ErrorHandleIndex]     = new ManualResetEvent(false);
            m_WaitHandles[CreationHandleIndex]  = new Mutex();

            m_ErrorTimer         = null;  // No error yet.

            m_ObjectList            = new ArrayList();
            m_State = State.Running;
        }
 private void Initialize()
 {
     this.m_StackOld = new InterlockedStack();
     this.m_StackNew = new InterlockedStack();
     this.m_QueuedRequests = new System.Collections.Queue();
     this.m_WaitHandles = new WaitHandle[] { new System.Net.Semaphore(0, 0x100000), new ManualResetEvent(false), new Mutex() };
     this.m_ErrorTimer = null;
     this.m_ObjectList = new ArrayList();
     this.m_State = State.Running;
 }