Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
cache.c File Reference
#include "config.h"
#include "common/cache.h"
#include "common/darktable.h"
#include "common/dtpthread.h"
#include <assert.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
+ Include dependency graph for common/cache.c:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void dt_cache_init (dt_cache_t *cache, size_t entry_size, size_t cost_quota)
 
void dt_cache_cleanup (dt_cache_t *cache)
 
int32_t dt_cache_contains (dt_cache_t *cache, const uint32_t key)
 
int dt_cache_for_all (dt_cache_t *cache, int(*process)(const uint32_t key, const void *data, void *user_data), void *user_data)
 
dt_cache_entry_tdt_cache_testget (dt_cache_t *cache, const uint32_t key, char mode)
 
dt_cache_entry_tdt_cache_get_with_caller (dt_cache_t *cache, const uint32_t key, char mode, const char *file, int line)
 
int dt_cache_remove (dt_cache_t *cache, const uint32_t key)
 
void dt_cache_gc (dt_cache_t *cache, const float fill_ratio)
 
void dt_cache_release_with_caller (dt_cache_t *cache, dt_cache_entry_t *entry, const char *file, int line)
 

Function Documentation

◆ dt_cache_cleanup()

◆ dt_cache_contains()

int32_t dt_cache_contains ( dt_cache_t cache,
const uint32_t  key 
)

◆ dt_cache_for_all()

int dt_cache_for_all ( dt_cache_t cache,
int(*)(const uint32_t key, const void *data, void *user_data)  process,
void user_data 
)

◆ dt_cache_gc()

◆ dt_cache_get_with_caller()

◆ dt_cache_init()

◆ dt_cache_release_with_caller()

void dt_cache_release_with_caller ( dt_cache_t cache,
dt_cache_entry_t entry,
const char *  file,
int  line 
)

◆ dt_cache_remove()

◆ dt_cache_testget()