mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
Add task_setcanceltype()
This commit is contained in:
+1
-1
@@ -89,7 +89,6 @@
|
||||
"pthread_mutex_unlock","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_mutex_t*"
|
||||
"pthread_once","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_once_t*","CODE void (*)(void)"
|
||||
"pthread_setaffinity_np","pthread.h","!defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_SMP)","int","pthread_t","size_t","FAR const cpu_set_t*"
|
||||
"pthread_setcanceltype","pthread.h","!defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_CANCELLATION_POINTS)","int","int","FAR int*"
|
||||
"pthread_setschedparam","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","pthread_t","int","FAR const struct sched_param*"
|
||||
"pthread_setschedprio","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","pthread_t","int"
|
||||
"pthread_setspecific","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","pthread_key_t","FAR const void*"
|
||||
@@ -152,6 +151,7 @@
|
||||
"task_delete","sched.h","","int","pid_t"
|
||||
"task_restart","sched.h","","int","pid_t"
|
||||
"task_setcancelstate","sched.h","","int","int","FAR int*"
|
||||
"task_setcanceltype","sched.h","defined(CONFIG_CANCELLATION_POINTS)","int","int","FAR int*"
|
||||
"telldir","dirent.h","CONFIG_NFILE_DESCRIPTORS > 0","off_t","FAR DIR*"
|
||||
"timer_create","time.h","!defined(CONFIG_DISABLE_POSIX_TIMERS)","int","clockid_t","FAR struct sigevent*","FAR timer_t*"
|
||||
"timer_delete","time.h","!defined(CONFIG_DISABLE_POSIX_TIMERS)","int","timer_t"
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 150 and column 2.
|
@@ -89,6 +89,10 @@ SYSCALL_LOOKUP(task_restart, 1, STUB_task_restart)
|
||||
SYSCALL_LOOKUP(task_setcancelstate, 2, STUB_task_setcancelstate)
|
||||
SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
|
||||
|
||||
# ifdef CONFIG_CANCELLATION_POINTS
|
||||
SYSCALL_LOOKUP(task_setcanceltype, 2, STUB_task_setcanceltype)
|
||||
# endif
|
||||
|
||||
/* The following can be individually enabled */
|
||||
|
||||
#ifdef CONFIG_ARCH_HAVE_VFORK
|
||||
@@ -296,7 +300,6 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
|
||||
SYSCALL_LOOKUP(pthread_setspecific, 2, STUB_pthread_setspecific)
|
||||
SYSCALL_LOOKUP(pthread_yield, 0, STUB_pthread_yield)
|
||||
# ifdef CONFIG_CANCELLATION_POINTS
|
||||
SYSCALL_LOOKUP(pthread_setcanceltype, 2, STUB_pthread_setcanceltype)
|
||||
SYSCALL_LOOKUP(pthread_testcancel, 0, STUB_pthread_testcancel)
|
||||
# endif
|
||||
# ifdef CONFIG_SMP
|
||||
|
||||
@@ -100,6 +100,9 @@ uintptr_t STUB_task_setcancelstate(int nbr, uintptr_t parm1,
|
||||
uintptr_t parm2);
|
||||
uintptr_t STUB_up_assert(int nbr, uintptr_t parm1, uintptr_t parm2);
|
||||
|
||||
uintptr_t STUB_task_setcanceltype(int nbr, uintptr_t parm1,
|
||||
uintptr_t parm2);
|
||||
|
||||
/* The following can be individually enabled */
|
||||
|
||||
uintptr_t STUB_vfork(int nbr);
|
||||
@@ -300,8 +303,6 @@ uintptr_t STUB_pthread_setspecific(int nbr, uintptr_t parm1,
|
||||
uintptr_t parm2);
|
||||
uintptr_t STUB_pthread_yield(int nbr);
|
||||
|
||||
uintptr_t STUB_pthread_setcanceltype(int nbr, uintptr_t parm1,
|
||||
uintptr_t parm2);
|
||||
uintptr_t STUB_pthread_testcancel(int nbr);
|
||||
|
||||
uintptr_t STUB_pthread_setaffinity(int nbr, uintptr_t parm1,
|
||||
|
||||
Reference in New Issue
Block a user