| 19 | int OMX_Core::refs = 0; |
| 20 | |
| 21 | OMX_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 | |
| 39 | void OMX_Core::destroyInstance() |
| 40 | { |
nothing calls this directly
no outgoing calls
no test coverage detected