Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
dt_pixelpipe_cache_pressure_sink_t Struct Reference

#include <pixelpipe_cache_pressure.h>

+ Collaboration diagram for dt_pixelpipe_cache_pressure_sink_t:

Data Fields

size_t(* held )(void *user)
 
size_t(* shed )(void *user, size_t target, size_t *given_back)
 
voiduser
 

Detailed Description

Definition at line 177 of file pixelpipe_cache_pressure.h.

Field Documentation

◆ held

size_t(* dt_pixelpipe_cache_pressure_sink_t::held) (void *user)

What the cache holds right now, in bytes.

Definition at line 180 of file pixelpipe_cache_pressure.h.

Referenced by _pressure_sink(), and _shed().

◆ shed

size_t(* dt_pixelpipe_cache_pressure_sink_t::shed) (void *user, size_t target, size_t *given_back)

Evict down to target bytes and hand the freed pages back to the OS. Returns what is left, and writes to *given_back the bytes the OS actually got – the two differ, which is why the log line the monitor writes wants both.

Definition at line 184 of file pixelpipe_cache_pressure.h.

Referenced by _shed().

◆ user

void* dt_pixelpipe_cache_pressure_sink_t::user

Definition at line 185 of file pixelpipe_cache_pressure.h.

Referenced by _shed().


The documentation for this struct was generated from the following file: