internal /*public*/ DoubleLinkList RemoveSublist(DoubleLink head, DoubleLink tail)
        {
            DoubleLinkList list = new DoubleLinkList();

            head._prev._next = tail._next;
            tail._next._prev = head._prev;
            list._next       = head;
            list._prev       = tail;
            head._prev       = list;
            tail._next       = list;

            return(list);
        }
        internal RequestTimeoutManager() {
            // initialize request lists

            _requestCount = 0;

            _lists = new DoubleLinkList[13];
            for (int i = 0; i < _lists.Length; i++)
                _lists[i] = new DoubleLinkList();
            _currentList = 0;

            // init lock

            _inProgressLock = 0;

            // create the timer

#if DBG
            if (!Debug.IsTagPresent("Timer") || Debug.IsTagEnabled("Timer"))
#endif
            {
                _timer = new Timer(new TimerCallback(this.TimerCompletionCallback), null, _timerPeriod, _timerPeriod);
            }

        }
 internal DoubleLinkListEnumerator(DoubleLinkList list)
 {
     this._list = list;
     this._current = list;
 }
 internal void RemoveFromList()
 {
     if (this._list != null)
     {
         lock (this._list)
         {
             base.Remove();
             this._list = null;
         }
     }
 }
 internal void AddToList(DoubleLinkList list)
 {
     lock (list)
     {
         list.InsertTail(this);
         this._list = list;
     }
 }
Esempio n. 6
0
 internal DoubleLinkListEnumerator(DoubleLinkList list)
 {
     _list    = list;
     _current = list;
 }
Esempio n. 7
0
 internal DoubleLinkListEnumerator(DoubleLinkList list)
 {
     this._list    = list;
     this._current = list;
 }
 internal void RemoveFromList() {
     if (_list != null) {
         lock(_list) {
             Remove();
             _list = null;
         }
     }
 }
 internal DoubleLinkListEnumerator(DoubleLinkList list) {
     _list = list;
     _current = list;
 }