public bool RemoveFromStandardList(Mule.Network.ThrottledFileSocket socket) { bool returnValue; lock (sendLocker_) { returnValue = RemoveFromStandardListNoLock(socket); } return(returnValue); }
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 } }
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); } } }