MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / m_AddThumbnailToLoad

Method m_AddThumbnailToLoad

external/ImGuiFileDialog/ImGuiFileDialog.cpp:3091–3105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3089}
3090
3091void 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
3107void IGFD::ThumbnailFeature::m_AddThumbnailToCreate(const std::shared_ptr<FileInfos>& vFileInfos) {
3108 if (vFileInfos.use_count()) {

Callers

nothing calls this directly

Calls 3

isFileMethod · 0.80
SearchForExtsMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected