From: Marek Olšák Date: Wed, 23 Oct 2019 20:15:37 +0000 (-0400) Subject: util/disk_cache: finish all queue jobs in destroy instead of killing them X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e096011def908b4ac08c8e7437ffaf8bd7f46819;p=mesa.git util/disk_cache: finish all queue jobs in destroy instead of killing them If there are queued shaders to be written to disk, wait for that. Reviewed-by: Timothy Arceri Reviewed-by: Kenneth Graunke --- diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c index 77af64ed3b0..0cd92ca2d5b 100644 --- a/src/util/disk_cache.c +++ b/src/util/disk_cache.c @@ -440,6 +440,7 @@ void disk_cache_destroy(struct disk_cache *cache) { if (cache && !cache->path_init_failed) { + util_queue_finish(&cache->cache_queue); util_queue_destroy(&cache->cache_queue); munmap(cache->index_mmap, cache->index_mmap_size); }