| 2915 | |
| 2916 | #ifdef USE_THUMBNAILS |
| 2917 | void IGFD::ThumbnailFeature::m_StartThumbnailFileDatasExtraction() { |
| 2918 | const bool res = m_ThumbnailGenerationThread.use_count() && m_ThumbnailGenerationThread->joinable(); |
| 2919 | if (!res) { |
| 2920 | m_IsWorking = true; |
| 2921 | m_CountFiles = 0U; |
| 2922 | m_ThumbnailGenerationThread = std::shared_ptr<std::thread>(new std::thread(&IGFD::ThumbnailFeature::m_ThreadThumbnailFileDatasExtractionFunc, this), [this](std::thread* obj_ptr) { |
| 2923 | m_IsWorking = false; |
| 2924 | if (obj_ptr != nullptr) { |
| 2925 | m_ThumbnailFileDatasToGetCv.notify_all(); |
| 2926 | obj_ptr->join(); |
| 2927 | } |
| 2928 | }); |
| 2929 | } |
| 2930 | } |
| 2931 | |
| 2932 | bool IGFD::ThumbnailFeature::m_StopThumbnailFileDatasExtraction() { |
| 2933 | const bool res = m_ThumbnailGenerationThread.use_count() && m_ThumbnailGenerationThread->joinable(); |
nothing calls this directly
no outgoing calls
no test coverage detected