libc/pthread: Fix comment and document issue

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi
2021-05-06 16:01:16 +08:00
committed by patacongo
parent f1a92e9cbb
commit 81a01d089b
7 changed files with 21 additions and 17 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ uint32_t *arm_syscall(uint32_t *regs)
#if !defined(CONFIG_BUILD_FLAT) && !defined(CONFIG_DISABLE_PTHREAD)
case SYS_pthread_start:
{
/* Set up to return to the user-space pthread start-up function in
/* Set up to enter the user-space pthread start-up function in
* unprivileged mode. We need:
*
* R0 = entrypt
+1 -1
View File
@@ -288,7 +288,7 @@ uint32_t *arm_syscall(uint32_t *regs)
#if !defined(CONFIG_BUILD_FLAT) && !defined(CONFIG_DISABLE_PTHREAD)
case SYS_pthread_start:
{
/* Set up to return to the user-space pthread start-up function in
/* Set up to enter the user-space pthread start-up function in
* unprivileged mode. We need:
*
* R0 = startup
+1 -1
View File
@@ -64,7 +64,7 @@
void up_pthread_start(pthread_trampoline_t startup,
pthread_startroutine_t entrypt, pthread_addr_t arg)
{
/* Let sys_call2() do all of the work */
/* Let sys_call3() do all of the work */
sys_call3(SYS_pthread_start, (uintptr_t)startup, (uintptr_t)entrypt,
(uintptr_t)arg);
+9 -7
View File
@@ -133,11 +133,13 @@ EXTERN const pthread_attr_t g_default_pthread_attr;
* attributes.
*
* Input Parameters:
* trampoline
* thread
* attr
* start_routine
* arg
* 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
*
* Returned Value:
* OK (0) on success; a (non-negated) errno value on failure. The errno
@@ -156,7 +158,7 @@ int nx_pthread_create(pthread_trampoline_t trampoline, FAR pthread_t *thread,
* Terminate execution of a thread started with pthread_create.
*
* Input Parameters:
* exit_valie
* exit_value
*
* Returned Value:
* None
@@ -176,7 +178,7 @@ void nx_pthread_exit(FAR void *exit_value) noreturn_function;
* within the pthread_exit() and pthread_cancellation() logic
*
* Input Parameters:
* tcb - The TCB of the pthread that is exiting or being canceled.
* None
*
* Returned Value:
* None
+1 -1
View File
@@ -40,7 +40,7 @@
* Terminate execution of a thread started with pthread_create.
*
* Input Parameters:
* exit_valie
* exit_value
*
* Returned Value:
* None
+7 -5
View File
@@ -208,11 +208,13 @@ static void pthread_start(void)
* attributes.
*
* Input Parameters:
* trampoline
* thread
* attr
* start_routine
* arg
* 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
*
* Returned Value:
* OK (0) on success; a (non-negated) errno value on failure. The errno
+1 -1
View File
@@ -50,7 +50,7 @@
* Terminate execution of a thread started with pthread_create.
*
* Input Parameters:
* exit_valie
* exit_value
*
* Returned Value:
* None