MCPcopy Create free account
hub / github.com/amule-project/amule / RemoveFromWaitingQueue

Method RemoveFromWaitingQueue

src/UploadQueue.cpp:667–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667bool CUploadQueue::RemoveFromWaitingQueue(CUpDownClient* client)
668{
669 CClientRefList::iterator it = m_waitinglist.begin();
670
671 uint16 rank = 1;
672 while (it != m_waitinglist.end()) {
673 CClientRefList::iterator it1 = it++;
674 if (it1->GetClient() == client) {
675 RemoveFromWaitingQueue(it1);
676 // update ranks of remaining queue
677 while (it != m_waitinglist.end()) {
678 it->GetClient()->SetUploadQueueWaitingPosition(rank++);
679 ++it;
680 }
681 return true;
682 }
683 rank++;
684 }
685 return false;
686}
687
688
689void CUploadQueue::RemoveFromWaitingQueue(CClientRefList::iterator pos)

Callers 1

Safe_DeleteMethod · 0.80

Calls 9

eraseMethod · 0.80
IsBannedMethod · 0.80
UnBanMethod · 0.80
SetUploadStateMethod · 0.80
ClearScoreMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
GetClientMethod · 0.45

Tested by

no test coverage detected