MCPcopy Create free account
hub / github.com/carlonluca/pot / instance

Method instance

piomxtextures_src/omx_wrapper/OMX_Core.cpp:21–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19int OMX_Core::refs = 0;
20
21OMX_Core* OMX_Core::instance()
22{
23 ACQUIRE_MUTEX;
24 try {
25 if (!m_instance) {
26 LOG_INFORMATION(LOG_TAG, "OMX Core instantiated.");
27 m_instance = new OMX_Core;
28 }
29 }
30 catch (const runtime_error& e) {
31 Q_UNUSED(e);
32 return NULL;
33 }
34
35 refs++;
36 return m_instance;
37}
38
39void OMX_Core::destroyInstance()
40{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected