mirror of
https://github.com/apache/nuttx.git
synced 2026-08-25 15:37:23 +00:00
libc: Call pthread_exit in user-space by up_pthread_exit
Drop to user-space in kernel/protected build with up_pthread_exit, now all pthread_cleanup functions executed in user mode. * A new syscall SYS_pthread_exit added * A new tcb flag TCB_FLAG_CANCEL_DOING added * up_pthread_exit implemented for riscv/arm arch Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
81a01d089b
commit
f4a0b7aedd
90 changed files with 533 additions and 118 deletions
|
|
@ -225,6 +225,8 @@ typedef FAR void *pthread_addr_t;
|
|||
typedef CODE pthread_addr_t (*pthread_startroutine_t)(pthread_addr_t);
|
||||
typedef pthread_startroutine_t pthread_func_t;
|
||||
|
||||
typedef void (*pthread_exitroutine_t)(pthread_addr_t);
|
||||
|
||||
typedef void (*pthread_trampoline_t)(pthread_startroutine_t, pthread_addr_t);
|
||||
|
||||
struct pthread_attr_s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue