| 55 | } |
| 56 | |
| 57 | bool OMXThread::StopThread() |
| 58 | { |
| 59 | if(!m_running) |
| 60 | { |
| 61 | CLog::Log(LOGDEBUG, "%s::%s - No thread running\n", CLASSNAME, __func__); |
| 62 | return false; |
| 63 | } |
| 64 | |
| 65 | m_bStop = true; |
| 66 | pthread_join(m_thread, NULL); |
| 67 | m_running = false; |
| 68 | |
| 69 | m_thread = 0; |
| 70 | |
| 71 | CLog::Log(LOGDEBUG, "%s::%s - Thread stopped\n", CLASSNAME, __func__); |
| 72 | return true; |
| 73 | } |
| 74 | |
| 75 | bool OMXThread::Create() |
| 76 | { |
nothing calls this directly
no outgoing calls
no test coverage detected