jules
41
[quote=“lucem”]
try
{
Jules.getInstance().addItemsToWorkQueue(WorkItems items);
}
catch (JulesOverloadedException e)
{
Forum.getAnyThread().post(BitchingAroundMessage m);
throw(e);
}
Pretty much what i read from the last couple posts.[/quote]
Here’s the real algorithm:
void Jules::handleMoaningUser (Request req)
{
if (thingsToDo.isEmpty() || req.isEmergency() || req.isReallyEasyToDo() || req.user.hasProvidedSuggestedFix())
fix (req);
else if (req.getNumberOfPeopleWhoWouldNotice() > 1 || req.isImportant())
thingsToDo.add (req);
}
mdsp
42
shouldn’t it be a const ref to avoid the copying overhead…?
[quote=“jules”]void Jules::handleMoaningUser (Request req)
{
if (thingsToDo.isEmpty() || req.isEmergency() || req.isReallyEasyToDo() || req.user.hasProvidedSuggestedFix())
fix (req);
else if (req.getNumberOfPeopleWhoWouldNotice() > 1 || req.isImportant())
thingsToDo.add (req);
}
[/quote]
For fucks sake aren’t you busy enough that you have real code to write!?!?!! :roll: :mrgreen:
jules
44
[quote=“TheVinn”][quote=“jules”]void Jules::handleMoaningUser (Request req)
{
if (thingsToDo.isEmpty() || req.isEmergency() || req.isReallyEasyToDo() || req.user.hasProvidedSuggestedFix())
fix (req);
else if (req.getNumberOfPeopleWhoWouldNotice() > 1 || req.isImportant())
thingsToDo.add (req);
}
[/quote]
For fucks sake aren’t you busy enough that you have real code to write!?!?!! :roll: :mrgreen:[/quote]
For me, it was quicker to write that than explain the same thing in english
Anyways, this thread is old, tired and rambling, and it’s time to lock it. Constructive discussion elsewhere please!