MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / engine

Method engine

libapp2sys/src/main/cpp/client.h:328–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326 }
327
328 IClientEngine* engine() {
329 if (!m_enable) {
330 return NULL;
331 }
332 if (m_pClientEngine && m_pClientEngine->isRunning()) {
333 return m_pClientEngine;
334 }
335 pdbg("ClientEngine is not running, try Reconnect");
336
337 if (m_pC2JavaCallback) {
338 m_pC2JavaCallback->callback(CALLBACK_TYPE_STATUS, 0, 0, ERR_CLIENT_DISCONNECT, 0, 0, NULL, 0);
339 }
340 if (tryStartEngine() == 0) {
341 return m_pClientEngine;
342 }
343 return NULL;
344 }
345
346private:
347 IC2JavaCallback *m_pC2JavaCallback;

Callers

nothing calls this directly

Calls 2

callbackMethod · 0.80
isRunningMethod · 0.45

Tested by

no test coverage detected