Module thread_local

Module thread_local 

Source
Expand description

Thread-local pool storage for avoiding explicit pool passing

This module provides thread-local storage for pools, allowing ColumnData operations to access pools without needing to pass them through the entire call stack.

Functionsยง

clear_thread_pools
Clear thread-local pools for the current thread
get_thread_pools
Get a clone of the thread-local pools instance Returns None if not initialized
has_thread_pools
Check if thread-local pools are initialized
set_thread_pools
Set the thread-local pools instance for the current thread
thread_pools
Get the thread-local pools instance or panic with helpful message
with_temporary_pools
Execute a closure with temporary thread-local pools The previous pools state is restored after the closure completes
with_thread_pools
Execute a function with access to thread-local pools