Pointer to the arguments passed to the entry function. An argument can be to any pointer type. @detdesc The thread stack can be passed in as the osal_thread_stack argument, or osal_thread_stack=NULL indicates that osal allocates the stack internally. If the caller provides the stack, the caller is responsible for freeing the stack memory after joining the thread.
Returns0 Success Nonzero Failure.
ar_osal_thread_get_id
Get current thread id.
int64_t ar_osal_thread_get_id(void)
Parameters
thread id: Current thread id.
ReturnsThread id.
ar_osal_thread_join_destroy
Waits for a specified thread to exit, and collects the exit status and clear the thread object.@datatypes ar_osal_thread_t