Marks a thread object for deletion.
cma_thread_detach( thread);
Argument Data Type Accessthread opaque cma_t_thread modify
#includevoid cma_thread_detach ( cma_t_thread *thread);
Call this routine when no other threads are interested in joining with the thread. Call this routine where appropriate for every thread that is created to ensure that storage for thread objects does not accumulate.
Once this routine has been called, other threads cannot join with the detached thread.
Calling this routine for a value for thread of cma_c_null is legal and has no effect.
The results of this routine are unpredictable if the value of thread refers to a thread object that does not currently exist.
cma_e_existence cma_e_use_error