| 3027 | } |
| 3028 | |
| 3029 | void IGFD::ThumbnailFeature::m_AddThumbnailToLoad(const std::shared_ptr<FileInfos>& vFileInfos) { |
| 3030 | if (vFileInfos.use_count()) { |
| 3031 | if (vFileInfos->fileType.isFile()) { |
| 3032 | //|| file->fileExtLevels == ".hdr" => format float so in few times |
| 3033 | if (vFileInfos->SearchForExts(".png,.bmp,.tga,.jpg,.jpeg,.gif,.psd,.pic,.ppm,.pgm", true)) { |
| 3034 | // write => thread concurency issues |
| 3035 | m_ThumbnailFileDatasToGetMutex.lock(); |
| 3036 | m_ThumbnailFileDatasToGet.push_back(vFileInfos); |
| 3037 | vFileInfos->thumbnailInfo.isLoadingOrLoaded = true; |
| 3038 | m_ThumbnailFileDatasToGetMutex.unlock(); |
| 3039 | } |
| 3040 | m_ThumbnailFileDatasToGetCv.notify_all(); |
| 3041 | } |
| 3042 | } |
| 3043 | } |
| 3044 | |
| 3045 | void IGFD::ThumbnailFeature::m_AddThumbnailToCreate(const std::shared_ptr<FileInfos>& vFileInfos) { |
| 3046 | if (vFileInfos.use_count()) { |
nothing calls this directly
no test coverage detected