MCPcopy Create free account
hub / github.com/comaps/comaps / CancelTask

Method CancelTask

libs/platform/platform.cpp:375–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375void Platform::CancelTask(Thread thread, base::TaskLoop::TaskId id)
376{
377 ASSERT(m_networkThread && m_fileThread && m_backgroundThread, ());
378 switch (thread)
379 {
380 case Thread::File: m_fileThread->Cancel(id); return;
381 case Thread::Network: m_networkThread->Cancel(id); return;
382 case Thread::Gui: CHECK(false, ("Task cancelling for gui thread is not supported yet")); return;
383 case Thread::Background: m_backgroundThread->Cancel(id); return;
384 }
385}
386
387std::string DebugPrint(Platform::EError err)
388{

Callers

nothing calls this directly

Calls 2

ASSERTFunction · 0.85
CancelMethod · 0.45

Tested by

no test coverage detected