mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
Add task_testcancel()
This commit is contained in:
+1
-1
@@ -93,7 +93,6 @@
|
||||
"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*"
|
||||
"pthread_sigmask","pthread.h","!defined(CONFIG_DISABLE_SIGNALS) && !defined(CONFIG_DISABLE_PTHREAD)","int","int","FAR const sigset_t*","FAR sigset_t*"
|
||||
"pthread_testcancel","pthread.h","!defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_CANCELLATION_POINTS)","void"
|
||||
"pthread_yield","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","void"
|
||||
"putenv","stdlib.h","!defined(CONFIG_DISABLE_ENVIRON)","int","FAR const char*"
|
||||
"read","unistd.h","CONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0","ssize_t","int","FAR void*","size_t"
|
||||
@@ -152,6 +151,7 @@
|
||||
"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*"
|
||||
"task_testcancel","pthread.h","defined(CONFIG_CANCELLATION_POINTS)","void"
|
||||
"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 149 and column 2.
|
@@ -91,6 +91,7 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
|
||||
|
||||
# ifdef CONFIG_CANCELLATION_POINTS
|
||||
SYSCALL_LOOKUP(task_setcanceltype, 2, STUB_task_setcanceltype)
|
||||
SYSCALL_LOOKUP(task_testcancel, 0, STUB_task_testcancel)
|
||||
# endif
|
||||
|
||||
/* The following can be individually enabled */
|
||||
@@ -299,9 +300,6 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
|
||||
SYSCALL_LOOKUP(pthread_setschedprio, 2, STUB_pthread_setschedprio)
|
||||
SYSCALL_LOOKUP(pthread_setspecific, 2, STUB_pthread_setspecific)
|
||||
SYSCALL_LOOKUP(pthread_yield, 0, STUB_pthread_yield)
|
||||
# ifdef CONFIG_CANCELLATION_POINTS
|
||||
SYSCALL_LOOKUP(pthread_testcancel, 0, STUB_pthread_testcancel)
|
||||
# endif
|
||||
# ifdef CONFIG_SMP
|
||||
SYSCALL_LOOKUP(pthread_setaffinity, 3, STUB_pthread_setaffinity)
|
||||
SYSCALL_LOOKUP(pthread_getaffinity, 3, STUB_pthread_getaffinity)
|
||||
|
||||
@@ -102,6 +102,7 @@ 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);
|
||||
uintptr_t STUB_task_testcancel(int nbr);
|
||||
|
||||
/* The following can be individually enabled */
|
||||
|
||||
@@ -303,8 +304,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_testcancel(int nbr);
|
||||
|
||||
uintptr_t STUB_pthread_setaffinity(int nbr, uintptr_t parm1,
|
||||
uintptr_t parm2, uintptr_t parm3);
|
||||
uintptr_t STUB_pthread_getaffinity(int nbr, uintptr_t parm1,
|
||||
|
||||
Reference in New Issue
Block a user