Пример #1
0
        public bool RemoveFromStandardList(Mule.Network.ThrottledFileSocket socket)
        {
            bool returnValue;

            lock (sendLocker_)
            {
                returnValue = RemoveFromStandardListNoLock(socket);
            }

            return(returnValue);
        }
Пример #2
0
        public void RemoveFromAllQueues(Mule.Network.ThrottledFileSocket socket)
        {
            // Get critical section
            lock (sendLocker_)
            {
                if (doRun_)
                {
                    RemoveFromAllQueues(socket, false);

                    // And remove it from upload slots
                    RemoveFromStandardListNoLock(socket);
                }

                // End critical section
            }
        }
Пример #3
0
        public void AddToStandardList(uint index, Mule.Network.ThrottledFileSocket socket)
        {
            if (socket != null)
            {
                lock (sendLocker_)
                {
                    RemoveFromStandardListNoLock(socket);

                    if (index > (uint)standardOrderList_.Count)
                    {
                        index = (uint)standardOrderList_.Count;
                    }

                    standardOrderList_.Insert((int)index, socket);
                }
            }
        }