MCPcopy Create free account
hub / github.com/axmolengine/axmol / setDispatchOnWorkThread

Method setDispatchOnWorkThread

core/network/HttpClient.cpp:157–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void HttpClient::setDispatchOnWorkThread(bool bVal)
158{
159 _scheduler->unscheduleAllForTarget(this);
160 _dispatchOnWorkThread = bVal;
161 if (!bVal)
162 _scheduler->schedule([this](float) { tickInput(); }, this, 0, false, "#");
163}
164
165
166// Poll and notify main thread if responses exists in queue

Callers

nothing calls this directly

Calls 2

scheduleMethod · 0.45

Tested by

no test coverage detected