Skip to main content

set_thread_slab_pool

Function set_thread_slab_pool 

Source
pub fn set_thread_slab_pool(
    pool: Option<Arc<FBufSlabs>>,
) -> Option<Arc<FBufSlabs>>
Expand description

Installs a slab pool for the current thread and returns the previous one.

Passing None clears the thread-local override and restores use of the process-wide fallback slab set.