pub unsafe extern "C" fn k_thread_heap_assign(
thread: *mut k_thread,
heap: *mut k_heap,
)
Expand description
@brief Assign a resource memory pool to a thread
By default, threads have no resource pool assigned unless their parent thread has a resource pool, in which case it is inherited. Multiple threads may be assigned to the same memory pool.
Changing a thread’s resource pool will not migrate allocations from the previous pool.
@param thread Target thread to assign a memory pool for resource requests. @param heap Heap object to use for resources, or NULL if the thread should no longer have a memory pool.