Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_file/filelist.c
| Show First 20 Lines • Show All 1,547 Lines • ▼ Show 20 Lines | if (preview != NULL) { | ||||
| MEM_freeN(preview); | MEM_freeN(preview); | ||||
| } | } | ||||
| MEM_freeN(preview_taskdata); | MEM_freeN(preview_taskdata); | ||||
| } | } | ||||
| static void filelist_cache_preview_ensure_running(FileListEntryCache *cache) | static void filelist_cache_preview_ensure_running(FileListEntryCache *cache) | ||||
| { | { | ||||
| if (!cache->previews_pool) { | if (!cache->previews_pool) { | ||||
| cache->previews_pool = BLI_task_pool_create_background(cache, TASK_PRIORITY_LOW); | cache->previews_pool = BLI_task_pool_create_background( | ||||
| cache, TASK_PRIORITY_LOW, TASK_ISOLATION_ON); | |||||
| cache->previews_done = BLI_thread_queue_init(); | cache->previews_done = BLI_thread_queue_init(); | ||||
| IMB_thumb_locks_acquire(); | IMB_thumb_locks_acquire(); | ||||
| } | } | ||||
| } | } | ||||
| static void filelist_cache_previews_clear(FileListEntryCache *cache) | static void filelist_cache_previews_clear(FileListEntryCache *cache) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 1,960 Lines • Show Last 20 Lines | |||||