MCPcopy Create free account
hub / github.com/defold/defold / Pump

Function Pump

engine/dlib/src/test/test_mdns.cpp:236–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234 };
235
236 static void Pump(dmMDNS::HMDNS mdns, dmMDNS::HBrowser browser, uint32_t iterations, uint32_t sleep_us)
237 {
238 for (uint32_t i = 0; i < iterations; ++i)
239 {
240 if (mdns)
241 dmMDNS::Update(mdns);
242 if (browser)
243 dmMDNS::UpdateBrowser(browser);
244 dmTime::Sleep(sleep_us);
245 }
246 }
247
248 static bool WaitForEvent(EventLog& event_log, dmMDNS::EventType event_type, const char* instance_name, dmMDNS::HMDNS mdns, dmMDNS::HBrowser browser, uint32_t timeout_ms)
249 {

Callers 3

WaitForEventFunction · 0.85
WaitForEventCountFunction · 0.85
TESTFunction · 0.85

Calls 3

UpdateBrowserFunction · 0.85
UpdateFunction · 0.50
SleepFunction · 0.50

Tested by

no test coverage detected