gustavonihei commented on a change in pull request #3626: URL: https://github.com/apache/incubator-nuttx/pull/3626#discussion_r632754532
########## File path: include/nuttx/pthread.h ########## @@ -121,6 +125,72 @@ EXTERN const pthread_attr_t g_default_pthread_attr; * Public Function Prototypes ****************************************************************************/ +/**************************************************************************** + * Name: nx_pthread_create + * + * Description: + * This function creates and activates a new thread with specified + * attributes. + * + * Input Parameters: + * trampoline - The user space startup function + * thread - The pthread handle to be used + * attr - It points to a pthread_attr_t structure whose contents are + * used at thread creation time to determine attributes + * for the new thread + * entry - The new thread starts execution by invoking entry + * arg - It is passed as the sole argument of entry + * exit - The user-space pthread exit function + * + * Returned Value: + * OK (0) on success; a (non-negated) errno value on failure. The errno + * variable is not set. + * + ****************************************************************************/ + +int nx_pthread_create(pthread_trampoline_t trampoline, FAR pthread_t *thread, + FAR const pthread_attr_t *attr, + pthread_startroutine_t entry, pthread_addr_t arg, + pthread_exitroutine_t exit); + +/**************************************************************************** + * Name: nx_pthread_exit + * + * Description: + * Terminate execution of a thread started with pthread_create. + * + * Input Parameters: + * exit_value + * + * Returned Value: + * None + * + * Assumptions: + * Review comment: ```suggestion ``` If there are no assumptions, the field may be omitted. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org