| 3089 | } |
| 3090 | |
| 3091 | void IGFD::ThumbnailFeature::m_AddThumbnailToLoad(const std::shared_ptr<FileInfos>& vFileInfos) { |
| 3092 | if (vFileInfos.use_count()) { |
| 3093 | if (vFileInfos->fileType.isFile()) { |
| 3094 | //|| file->fileExtLevels == ".hdr" => format float so in few times |
| 3095 | if (vFileInfos->SearchForExts(".png,.bmp,.tga,.jpg,.jpeg,.gif,.psd,.pic,.ppm,.pgm", true)) { |
| 3096 | // write => thread concurency issues |
| 3097 | m_ThumbnailFileDatasToGetMutex.lock(); |
| 3098 | m_ThumbnailFileDatasToGet.push_back(vFileInfos); |
| 3099 | vFileInfos->thumbnailInfo.isLoadingOrLoaded = true; |
| 3100 | m_ThumbnailFileDatasToGetMutex.unlock(); |
| 3101 | } |
| 3102 | m_ThumbnailFileDatasToGetCv.notify_all(); |
| 3103 | } |
| 3104 | } |
| 3105 | } |
| 3106 | |
| 3107 | void IGFD::ThumbnailFeature::m_AddThumbnailToCreate(const std::shared_ptr<FileInfos>& vFileInfos) { |
| 3108 | if (vFileInfos.use_count()) { |
nothing calls this directly
no test coverage detected