Function k_mem_domain_add_thread

Source
pub unsafe extern "C" fn k_mem_domain_add_thread(
    domain: *mut k_mem_domain,
    thread: k_tid_t,
) -> c_int
Expand description

@brief Add a thread into a memory domain.

Add a thread into a memory domain. It will be removed from whatever memory domain it previously belonged to.

@param domain The memory domain that the thread is going to be added into. @param thread ID of thread going to be added into the memory domain.

@return 0 if successful, fails otherwise.