doc: Replace *_thread_resource_pool_assign with k_thread_heap_assign

Replace *_thread_resource_pool_assign() in the reference with the new
k_thread_heap_assign() since both k_thread_resource_pool_assign() and
z_thread_resource_pool_assign() has been removed prio to v2.5 (by the
commit c770cab1a3 and 3c2c1d85b0 respectively) along with the
k_mem_pool API removal.

For the resource pool inheritance test, the variables with "res_pool"
string has been replaced by "heap_mem" to align with the documentation
fix.  No functionality has been changed.

Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>
This commit is contained in:
Yasushi SHOJI 2021-03-11 20:45:20 +09:00 committed by Anas Nashif
commit a3e0f8c316
4 changed files with 13 additions and 13 deletions

View file

@ -402,7 +402,7 @@ __syscall int k_thread_stack_space_get(const struct k_thread *thread,
/**
* @brief Assign the system heap as a thread's resource pool
*
* Similar to z_thread_resource_pool_assign(), but the thread will use
* Similar to z_thread_heap_assign(), but the thread will use
* the kernel heap to draw memory.
*
* Use with caution, as a malicious thread could perform DoS attacks on the