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

Method Push

libs/platform/gui_thread_qt.cpp:11–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace platform
10{
11base::TaskLoop::PushResult GuiThread::Push(Task && task)
12{
13 // Following hack is used to post on main message loop |fn| when
14 // |source| is destroyed (at the exit of the code block).
15 QObject source;
16 QObject::connect(&source, &QObject::destroyed, QCoreApplication::instance(), std::move(task));
17
18 return {true, base::TaskLoop::kNoId};
19}
20
21base::TaskLoop::PushResult GuiThread::Push(Task const & task)
22{

Callers 1

RunTaskMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected