Exemplo n.º 1
0
 private void DeleteWaiterThread(WaiterThread waiterThread)
 {
     lock (_waiterThreads)
     {
         _waiterThreads.Remove(waiterThread);
         waiterThread.ObjectSignaled -= this.OnObjectSignaled;
         waiterThread.Dispose();
     }
 }
Exemplo n.º 2
0
        private void CreateWaiterThread(ISynchronizable obj = null)
        {
            WaiterThread waiterThread = new WaiterThread(this);

            waiterThread.ObjectSignaled += this.OnObjectSignaled;

            if (obj != null)
            {
                waiterThread.Add(obj);
            }

            lock (_waiterThreads)
                _waiterThreads.Add(waiterThread);
        }
Exemplo n.º 3
0
 private void DeleteWaiterThread(WaiterThread waiterThread)
 {
     lock (_waiterThreads)
     {
         _waiterThreads.Remove(waiterThread);
         waiterThread.ObjectSignaled -= this.OnObjectSignaled;
         waiterThread.Dispose();
     }
 }
Exemplo n.º 4
0
        private void CreateWaiterThread(ISynchronizable obj = null)
        {
            WaiterThread waiterThread = new WaiterThread(this);

            waiterThread.ObjectSignaled += this.OnObjectSignaled;

            if (obj != null)
                waiterThread.Add(obj);

            lock (_waiterThreads)
                _waiterThreads.Add(waiterThread);
        }