| 36 | |
| 37 | |
| 38 | void cProcessor::cThread::Execute(void) |
| 39 | { |
| 40 | LOG("Started a new thread: %d", cIsThread::GetCurrentID()); |
| 41 | |
| 42 | m_ParentProcessor.m_ThreadsHaveStarted.Set(); |
| 43 | |
| 44 | for (;;) |
| 45 | { |
| 46 | AString FileName = m_ParentProcessor.GetOneFileName(); |
| 47 | if (FileName.empty()) |
| 48 | { |
| 49 | // All done, terminate the thread |
| 50 | break; |
| 51 | } |
| 52 | ProcessFile(FileName); |
| 53 | } // for-ever |
| 54 | |
| 55 | LOG("Thread %d terminated", cIsThread::GetCurrentID()); |
| 56 | } |
| 57 | |
| 58 | |
| 59 |
nothing calls this directly
no test coverage detected