示例#1
0
void UserQueue::setBundlePriority(BundlePtr& aBundle, QueueItemBase::Priority p) noexcept {
	dcassert(!aBundle->isFinished());

	HintedUserList sources;
	aBundle->getSourceUsers(sources);

	for(const auto& u: sources)
		removeBundle(aBundle, u);

	aBundle->setPriority(p);

	for(const auto& u: sources) 
		addBundle(aBundle, u);
}
示例#2
0
void UserQueue::setBundlePriority(BundlePtr& aBundle, Bundle::Priority p) {
	dcassert(!aBundle->isFinished());

	HintedUserList sources;
	aBundle->getSources(sources);

	for(auto& u: sources)
		removeBundle(aBundle, u);

	aBundle->setPriority(p);

	for(auto& u: sources) 
		addBundle(aBundle, u);
}