MCPcopy Create free account
hub / github.com/aiekick/ImGuiFileDialog / m_AddThumbnailToLoad

Method m_AddThumbnailToLoad

ImGuiFileDialog.cpp:3029–3043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3027}
3028
3029void 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
3045void IGFD::ThumbnailFeature::m_AddThumbnailToCreate(const std::shared_ptr<FileInfos>& vFileInfos) {
3046 if (vFileInfos.use_count()) {

Callers

nothing calls this directly

Calls 2

isFileMethod · 0.80
SearchForExtsMethod · 0.80

Tested by

no test coverage detected