mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
pthread_setcanceltype() and pthread_testcancel() do not have to be system calls if cancellation points are not enabled.
This commit is contained in:
+16
-10
@@ -401,19 +401,25 @@
|
||||
# define SYS_pthread_mutex_unlock (__SYS_pthread+21)
|
||||
# define SYS_pthread_once (__SYS_pthread+22)
|
||||
# define SYS_pthread_setcancelstate (__SYS_pthread+23)
|
||||
# define SYS_pthread_setcanceltype (__SYS_pthread+24)
|
||||
# define SYS_pthread_setschedparam (__SYS_pthread+25)
|
||||
# define SYS_pthread_setschedprio (__SYS_pthread+26)
|
||||
# define SYS_pthread_setspecific (__SYS_pthread+27)
|
||||
# define SYS_pthread_testcancel (__SYS_pthread+28)
|
||||
# define SYS_pthread_yield (__SYS_pthread+29)
|
||||
# define SYS_pthread_setschedparam (__SYS_pthread+24)
|
||||
# define SYS_pthread_setschedprio (__SYS_pthread+25)
|
||||
# define SYS_pthread_setspecific (__SYS_pthread+26)
|
||||
# define SYS_pthread_yield (__SYS_pthread+27)
|
||||
|
||||
# ifdef CONFIG_CANCELLATION_POINTS
|
||||
# define SYS_pthread_setcanceltype (__SYS_pthread+28)
|
||||
# define SYS_pthread_testcancel (__SYS_pthread+29)
|
||||
# define __SYS_pthread_smp (__SYS_pthread+30)
|
||||
# else
|
||||
# define __SYS_pthread_smp (__SYS_pthread+28)
|
||||
# endif
|
||||
|
||||
# ifdef CONFIG_SMP
|
||||
# define SYS_pthread_setaffinity_np (__SYS_pthread+30)
|
||||
# define SYS_pthread_getaffinity_np (__SYS_pthread+31)
|
||||
# define __SYS_pthread_signals (__SYS_pthread+32)
|
||||
# define SYS_pthread_setaffinity_np (__SYS_pthread_smp+0)
|
||||
# define SYS_pthread_getaffinity_np (__SYS_pthread_smp+1)
|
||||
# define __SYS_pthread_signals (__SYS_pthread_smp+2)
|
||||
# else
|
||||
# define __SYS_pthread_signals (__SYS_pthread+30)
|
||||
# define __SYS_pthread_signals __SYS_pthread_smp
|
||||
# endif
|
||||
|
||||
# ifndef CONFIG_DISABLE_SIGNALS
|
||||
|
||||
Reference in New Issue
Block a user