Function lgalloc::lgalloc_set_config

source ·
pub fn lgalloc_set_config(config: &LgAlloc)
Expand description

Set or update the configuration for lgalloc.

The function accepts a configuration, which is then applied on lgalloc. It allows clients to change the path where area files reside, and change the configuration of the background task.

Updating the area path only applies to new allocations, existing allocations are not moved to the new path.

Updating the background thread configuration eventually applies the new configuration on the running thread, or starts the background worker.

§Panics

Panics if the internal state of lgalloc is corrupted.