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

Method StopThread

piomxtextures_src/omxplayer_lib/OMXThread.cpp:57–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57bool 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
75bool OMXThread::Create()
76{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected