MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / executeNextSubTask

Method executeNextSubTask

launcher/net/NetJob.cpp:67–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void NetJob::executeNextSubTask()
68{
69 // We're finished, check for failures and retry if we can (up to 3 times)
70 if (isRunning() && m_queue.isEmpty() && m_doing.isEmpty() && !m_failed.isEmpty() && m_try < 3) {
71 m_try += 1;
72 while (!m_failed.isEmpty()) {
73 auto task = m_failed.take(*m_failed.keyBegin());
74 m_done.remove(task.get());
75 m_queue.enqueue(task);
76 }
77 }
78 ConcurrentTask::executeNextSubTask();
79}
80
81auto NetJob::size() const -> int
82{

Callers

nothing calls this directly

Calls 3

isEmptyMethod · 0.45
removeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected