| 59 | } |
| 60 | |
| 61 | void CWelsThread::Thread() { |
| 62 | while (true) { |
| 63 | WelsEventWait (&m_hEvent,&m_hMutex,m_iConVar); |
| 64 | |
| 65 | if (GetEndFlag()) { |
| 66 | break; |
| 67 | } |
| 68 | |
| 69 | m_iConVar = 1; |
| 70 | ExecuteTask();//in ExecuteTask there will be OnTaskStop which opens the potential new Signaling of next run, so the setting of m_iConVar = 1 should be before ExecuteTask() |
| 71 | } |
| 72 | |
| 73 | SetRunning (false); |
| 74 | } |
| 75 | |
| 76 | WELS_THREAD_ERROR_CODE CWelsThread::Start() { |
| 77 | #ifndef __APPLE__ |
no test coverage detected